Skip to content

Commit d6b1519

Browse files
VKaalexbruy
authored andcommitted
Fix Union tool to produce correct attribute table (fix #4567)
1 parent 7a9110a commit d6b1519

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/plugins/fTools/tools/doGeoprocessing.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,6 @@ def union( self ):
12021202
else:
12031203
for id in intersects:
12041204
vproviderA.featureAtId( int( id ), inFeatB , True, allAttrsA )
1205-
atMapB = inFeatB.attributeMap()
12061205
tmpGeom = QgsGeometry( inFeatB.geometry() )
12071206

12081207
try:
@@ -1222,7 +1221,7 @@ def union( self ):
12221221
if add:
12231222
try:
12241223
outFeat.setGeometry( diff_geom )
1225-
outFeat.setAttributeMap( atMapB )
1224+
outFeat.setAttributeMap( atMap )
12261225
writer.addFeature( outFeat )
12271226
except Exception, err:
12281227
FEATURE_EXCEPT = False

0 commit comments

Comments
 (0)