Skip to content
Permalink
Browse files

fTools/union: fix output attribute shift

  • Loading branch information
minorua committed Aug 31, 2013
1 parent 17d5fe9 commit b14ffb7c1ecd3b6cec317537ff1947b24bf39067
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 b14ffb7

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