Skip to content
Permalink
Browse files

Fix Union tool to produce correct attribute table (fix #4567)

  • Loading branch information
VKa authored and alexbruy committed Jan 11, 2012
1 parent 7a9110a commit d6b151961c9fec82a7da89d3bd1b068299e87288
Showing with 1 addition and 2 deletions.
  1. +1 −2 python/plugins/fTools/tools/doGeoprocessing.py
@@ -1202,7 +1202,6 @@ def union( self ):
else:
for id in intersects:
vproviderA.featureAtId( int( id ), inFeatB , True, allAttrsA )
atMapB = inFeatB.attributeMap()
tmpGeom = QgsGeometry( inFeatB.geometry() )

try:
@@ -1222,7 +1221,7 @@ def union( self ):
if add:
try:
outFeat.setGeometry( diff_geom )
outFeat.setAttributeMap( atMapB )
outFeat.setAttributeMap( atMap )
writer.addFeature( outFeat )
except Exception, err:
FEATURE_EXCEPT = False

0 comments on commit d6b1519

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