[pktools] 113/375: pkextract assert class_opt can be empty when extracting ogr vector sample

Bas Couwenberg sebastic at xs4all.nl
Wed Dec 3 21:54:05 UTC 2014


This is an automated email from the git hooks/post-receive script.

sebastic-guest pushed a commit to branch upstream-master
in repository pktools.

commit a4ac3e72b7ca63fe864c33bb1a8e704e111cbec9
Author: user <user at osgeolive.(none)>
Date:   Tue May 21 18:01:02 2013 +0200

    pkextract assert class_opt can be empty when extracting ogr vector sample
---
 src/apps/pkextract.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/apps/pkextract.cc b/src/apps/pkextract.cc
index 09be56b..007c504 100644
--- a/src/apps/pkextract.cc
+++ b/src/apps/pkextract.cc
@@ -875,7 +875,7 @@ int main(int argc, char *argv[])
         assert(poGeometry!=NULL);
         try{
           if(wkbFlatten(poGeometry->getGeometryType()) == wkbPoint ){
-            assert(class_opt.size()==1);//class_opt not implemented for point yet
+            assert(class_opt.size()<=1);//class_opt not implemented for point yet
             OGRPoint *poPoint = (OGRPoint *) poGeometry;
             x=poPoint->getX();
             y=poPoint->getY();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pktools.git



More information about the Pkg-grass-devel mailing list