Skip to content
Permalink
Browse files

[Fix #7360] - Fix Dealauney to vector api changes

  • Loading branch information
vinayan committed Apr 15, 2013
1 parent 4e257bd commit 58737b68313333ce87286c3cfb0ea270f75659ea
Showing with 4 additions and 1 deletion.
  1. +4 −1 python/plugins/fTools/tools/doGeometry.py
@@ -655,14 +655,17 @@ def delaunay_triangulation( self ):
indicies = list( triangle )
indicies.append( indicies[ 0 ] )
polygon = []
attrs = []
step = 0
for index in indicies:
vprovider.getFeatures( QgsFeatureRequest().setFilterFid( ptDict[ ids[ index ] ] ) ).nextFeature( inFeat )
geom = QgsGeometry( inFeat.geometry() )
point = QgsPoint( geom.asPoint() )
polygon.append( point )
if step <= 3: feat.setAttribute( step, QVariant( ids[ index ] ) )
if step <= 3:
attrs.append(QVariant( ids[ index ] ) )
step += 1
feat.setAttributes(attrs)
geometry = QgsGeometry().fromPolygon( [ polygon ] )
feat.setGeometry( geometry )
writer.addFeature( feat )

0 comments on commit 58737b6

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