Skip to content
Permalink
Browse files

Merge pull request #844 from minorua/union_attrs

fTools/union: fix output attribute shift
  • Loading branch information
NathanW2 committed Aug 31, 2013
2 parents 9b72523 + b14ffb7 commit 94a440f56d1892e0d151232981595bbcd0976c2a
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/fTools/tools/doGeoprocessing.py
@@ -1196,13 +1196,14 @@ def union( self ):
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:

0 comments on commit 94a440f

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