Skip to content

Commit fb942e6

Browse files
author
cfarmer
committed
quick fix for exporting the geometry of 2.5D features, fixes #3149
git-svn-id: http://svn.osgeo.org/qgis/trunk@14536 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 1c7e6d6 commit fb942e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/fTools/tools/doGeometry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,14 +558,14 @@ def layer_extent( self ):
558558
return True
559559

560560
def simpleMeasure( self, inGeom ):
561-
if inGeom.wkbType() == QGis.WKBPoint:
561+
if inGeom.wkbType() in (QGis.WKBPoint, QGis.WKBPoint25D):
562562
pt = QgsPoint()
563563
pt = inGeom.asPoint()
564564
attr1 = pt.x()
565565
attr2 = pt.y()
566566
else:
567567
measure = QgsDistanceArea()
568-
attr1 = measure.measure(inGeom)
568+
attr1 = measure.measure(inGeom)
569569
if inGeom.type() == QGis.Polygon:
570570
attr2 = self.perimMeasure( inGeom, measure )
571571
else:

0 commit comments

Comments
 (0)