Skip to content

Commit

Permalink
Fix area calculation on polygons with Z/M wkb types
Browse files Browse the repository at this point in the history
Follow up a6800d6
  • Loading branch information
nyalldawson committed Sep 14, 2017
1 parent 4ec1b4b commit 625c205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgssurface.h
Expand Up @@ -63,7 +63,7 @@ class CORE_EXPORT QgsSurface: public QgsAbstractGeometry
if ( !geom ) if ( !geom )
return nullptr; return nullptr;


QgsWkbTypes::Type flatType = geom->wkbType(); QgsWkbTypes::Type flatType = QgsWkbTypes::flatType( geom->wkbType() );
if ( flatType == QgsWkbTypes::CurvePolygon if ( flatType == QgsWkbTypes::CurvePolygon
|| flatType == QgsWkbTypes::Polygon || flatType == QgsWkbTypes::Polygon
|| flatType == QgsWkbTypes::Triangle ) || flatType == QgsWkbTypes::Triangle )
Expand Down

0 comments on commit 625c205

Please sign in to comment.