We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 29e28ef commit 85df54eCopy full SHA for 85df54e
python/plugins/fTools/tools/doGeometry.py
@@ -558,14 +558,14 @@ def layer_extent( self ):
558
return True
559
560
def simpleMeasure( self, inGeom ):
561
- if inGeom.wkbType() == QGis.WKBPoint:
+ if inGeom.wkbType() in (QGis.WKBPoint, QGis.WKBPoint25D):
562
pt = QgsPoint()
563
pt = inGeom.asPoint()
564
attr1 = pt.x()
565
attr2 = pt.y()
566
else:
567
measure = QgsDistanceArea()
568
- attr1 = measure.measure(inGeom)
+ attr1 = measure.measure(inGeom)
569
if inGeom.type() == QGis.Polygon:
570
attr2 = self.perimMeasure( inGeom, measure )
571
0 commit comments