[GRASS-SVN] r50799 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 13 11:02:45 EST 2012


Author: martinl
Date: 2012-02-13 08:02:45 -0800 (Mon, 13 Feb 2012)
New Revision: 50799

Modified:
   grass/trunk/lib/vector/Vlib/read_ogr.c
Log:
vlib: fix bug when reading OGR feature type geometry collection and multi-features 


Modified: grass/trunk/lib/vector/Vlib/read_ogr.c
===================================================================
--- grass/trunk/lib/vector/Vlib/read_ogr.c	2012-02-13 15:59:53 UTC (rev 50798)
+++ grass/trunk/lib/vector/Vlib/read_ogr.c	2012-02-13 16:02:45 UTC (rev 50799)
@@ -576,7 +576,7 @@
 	G_debug(4, "\t->more geoms -> part %d", ogr_info->offset.array[offset]);
 	hGeom2 = OGR_G_GetGeometryRef(hGeom, ogr_info->offset.array[offset]);
 	line = read_line(Map, hGeom2, offset + 1, Points);
-	if (eType == wkbPolygon || wkbMultiPolygon)
+	if (eType == wkbPolygon || eType == wkbMultiPolygon)
 	    return GV_BOUNDARY;
 	if (eType == wkbMultiPoint)
 	    return GV_POINT;



More information about the grass-commit mailing list