[QGIS Commit] r14536 - trunk/qgis/python/plugins/fTools/tools

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon Nov 8 18:06:50 EST 2010


Author: cfarmer
Date: 2010-11-08 15:06:50 -0800 (Mon, 08 Nov 2010)
New Revision: 14536

Modified:
   trunk/qgis/python/plugins/fTools/tools/doGeometry.py
Log:
quick fix for exporting the geometry of 2.5D features, fixes #3149

Modified: trunk/qgis/python/plugins/fTools/tools/doGeometry.py
===================================================================
--- trunk/qgis/python/plugins/fTools/tools/doGeometry.py	2010-11-08 22:24:35 UTC (rev 14535)
+++ trunk/qgis/python/plugins/fTools/tools/doGeometry.py	2010-11-08 23:06:50 UTC (rev 14536)
@@ -558,14 +558,14 @@
     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:



More information about the QGIS-commit mailing list