Skip to content

Commit

Permalink
fTools/union: fix output attribute shift
Browse files Browse the repository at this point in the history
  • Loading branch information
minorua committed Aug 31, 2013
1 parent 17d5fe9 commit b14ffb7
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 b14ffb7

Please sign in to comment.