Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[OGR] List TIN and PolyhedralSurface as Polygon when searching sublayers
Sublayer geometry types are always single types
  • Loading branch information
manisandro committed Oct 10, 2017
1 parent 59fa541 commit b2021e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -765,15 +765,15 @@ QStringList QgsOgrProvider::subLayers() const
fCount[wkbUnknown] = 0;
}

// List TIN and PolyhedralSurface as MultiPolygon
// List TIN and PolyhedralSurface as Polygon
if ( fCount.contains( wkbTIN ) )
{
fCount[wkbMultiPolygon] = fCount.value( wkbMultiPolygon ) + fCount[wkbTIN];
fCount[wkbPolygon] = fCount.value( wkbPolygon ) + fCount[wkbTIN];
fCount.remove( wkbTIN );
}
if ( fCount.contains( wkbPolyhedralSurface ) )
{
fCount[wkbMultiPolygon] = fCount.value( wkbMultiPolygon ) + fCount[wkbPolyhedralSurface];
fCount[wkbPolygon] = fCount.value( wkbPolygon ) + fCount[wkbPolyhedralSurface];
fCount.remove( wkbPolyhedralSurface );
}
// When there are CurvePolygons, promote Polygons
Expand Down

0 comments on commit b2021e9

Please sign in to comment.