Skip to content

Commit

Permalink
fixed #5514
Browse files Browse the repository at this point in the history
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 b877afa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sextante/ftools/ExportGeometryInfo.py
Expand Up @@ -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)
Expand Down

0 comments on commit b877afa

Please sign in to comment.