Skip to content

Commit b2021e9

Browse files
committedOct 10, 2017
[OGR] List TIN and PolyhedralSurface as Polygon when searching sublayers
Sublayer geometry types are always single types
1 parent 59fa541 commit b2021e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/providers/ogr/qgsogrprovider.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -765,15 +765,15 @@ QStringList QgsOgrProvider::subLayers() const
765765
fCount[wkbUnknown] = 0;
766766
}
767767

768-
// List TIN and PolyhedralSurface as MultiPolygon
768+
// List TIN and PolyhedralSurface as Polygon
769769
if ( fCount.contains( wkbTIN ) )
770770
{
771-
fCount[wkbMultiPolygon] = fCount.value( wkbMultiPolygon ) + fCount[wkbTIN];
771+
fCount[wkbPolygon] = fCount.value( wkbPolygon ) + fCount[wkbTIN];
772772
fCount.remove( wkbTIN );
773773
}
774774
if ( fCount.contains( wkbPolyhedralSurface ) )
775775
{
776-
fCount[wkbMultiPolygon] = fCount.value( wkbMultiPolygon ) + fCount[wkbPolyhedralSurface];
776+
fCount[wkbPolygon] = fCount.value( wkbPolygon ) + fCount[wkbPolyhedralSurface];
777777
fCount.remove( wkbPolyhedralSurface );
778778
}
779779
// When there are CurvePolygons, promote Polygons

0 commit comments

Comments
 (0)
Please sign in to comment.