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 625c20504729ae69b2c8ba6745fee672b153d808
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/geometry/qgssurface.h
@@ -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.
You can’t perform that action at this time.