mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Merge pull request #844 from minorua/union_attrs
fTools/union: fix output attribute shift
This commit is contained in:
commit
94a440f56d
@ -1196,13 +1196,14 @@ class geoprocessingThread( QThread ):
|
||||
FEATURE_EXCEPT = False
|
||||
|
||||
length = len( vproviderA.fields() )
|
||||
atMapA = [None] * length
|
||||
|
||||
fitB = vproviderB.getFeatures()
|
||||
while fitB.nextFeature( inFeatB ):
|
||||
add = False
|
||||
geom = QgsGeometry( inFeatB.geometry() )
|
||||
diff_geom = QgsGeometry( geom )
|
||||
atMap = inFeatB.attributes()
|
||||
atMap = atMapA + inFeatB.attributes()
|
||||
intersects = indexB.intersects( geom.boundingBox() )
|
||||
|
||||
if len(intersects) < 1:
|
||||
|
Loading…
x
Reference in New Issue
Block a user