mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
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
This commit is contained in:
parent
1c7e6d6317
commit
fb942e6a53
@ -558,14 +558,14 @@ class geometryThread( QThread ):
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user