Skip to content
Permalink
Browse files
Fix area calculation on polygons with Z/M wkb types
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.
@@ -63,7 +63,7 @@ class CORE_EXPORT QgsSurface: public QgsAbstractGeometry
if ( !geom )
return nullptr;

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

0 comments on commit 625c205

Please sign in to comment.