Skip to content

Commit

Permalink
Merge pull request #5336 from manisandro/ogrsublayer_tinpolysurf
Browse files Browse the repository at this point in the history
[OGR] List TIN and PolyhedralSurface as Polygon when searching sublayers
  • Loading branch information
manisandro committed Oct 10, 2017
2 parents 59fa541 + b2021e9 commit 754c6dd
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 754c6dd

Please sign in to comment.