瀏覽代碼

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 年之前
父節點
當前提交
c3549b7617
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;