mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[Fix #7360] - Fix Dealauney to vector api changes
This commit is contained in:
parent
4e257bdf7e
commit
58737b6831
@ -655,14 +655,17 @@ class geometryThread( QThread ):
|
||||
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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user