Skip to content
Permalink
Browse files
fixed #5514
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@163 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf@gmail.com committed May 2, 2012
1 parent cfaa9ad commit b877afae5bd7df25387f6ae7a9f78c3a18e46550
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/sextante/ftools/ExportGeometryInfo.py
@@ -51,6 +51,10 @@ def simpleMeasure( self, inGeom ):
pt = inGeom.asPoint()
attr1 = pt.x()
attr2 = pt.y()
elif inGeom.wkbType() in (QGis.WKBMultiPoint, QGis.WKBMultiPoint25D):
pt = inGeom.asMultiPoint()
attr1 = pt[ 0 ].x()
attr2 = pt[ 0 ].y()
else:
measure = QgsDistanceArea()
attr1 = measure.measure(inGeom)

0 comments on commit b877afa

Please sign in to comment.