Skip to content

Commit

Permalink
Merge pull request #844 from minorua/union_attrs
Browse files Browse the repository at this point in the history
fTools/union: fix output attribute shift
  • Loading branch information
NathanW2 committed Aug 31, 2013
2 parents 9b72523 + b14ffb7 commit 94a440f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/fTools/tools/doGeoprocessing.py
Expand Up @@ -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:
Expand Down

0 comments on commit 94a440f

Please sign in to comment.