Skip to content
Permalink
Browse files

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
  • Loading branch information
cfarmer
cfarmer committed Nov 8, 2010
1 parent 1c7e6d6 commit fb942e6a536955056d2c97e6bd11b141a8a2095e
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/fTools/tools/doGeometry.py
@@ -558,14 +558,14 @@ def layer_extent( self ):
return True

def simpleMeasure( self, inGeom ):
if inGeom.wkbType() == QGis.WKBPoint:
if inGeom.wkbType() in (QGis.WKBPoint, QGis.WKBPoint25D):
pt = QgsPoint()
pt = inGeom.asPoint()
attr1 = pt.x()
attr2 = pt.y()
else:
measure = QgsDistanceArea()
attr1 = measure.measure(inGeom)
attr1 = measure.measure(inGeom)
if inGeom.type() == QGis.Polygon:
attr2 = self.perimMeasure( inGeom, measure )
else:

0 comments on commit fb942e6

Please sign in to comment.
You can’t perform that action at this time.