Ver código fonte

vlib: fix bug when reading OGR feature type geometry collection and multi-features

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50799 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 anos atrás
pai
commit
c3549b7617
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      lib/vector/Vlib/read_ogr.c

+ 1 - 1
lib/vector/Vlib/read_ogr.c

@@ -576,7 +576,7 @@ int read_line(const struct Map_info *Map, OGRGeometryH hGeom, long offset,
 	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;