Skip to content

Commit

Permalink
fix #5617. Patch submitted by Salvatore Larosa, thanks!
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed May 22, 2012
1 parent a76d629 commit 049f5ca
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions python/plugins/fTools/tools/doGeoprocessing.py
Expand Up @@ -1147,18 +1147,20 @@ def union( self ):
temp_list = int_geom.asGeometryCollection()
for i in temp_list:
if i.type() == geom.type():
int_geom = QgsGeometry( i )
try:
outFeat.setGeometry( j )
outFeat.setGeometry( int_geom )
outFeat.setAttributeMap( ftools_utils.combineVectorAttributes( atMapA, atMapB ) )
writer.addFeature( outFeat )
except Exception, err:
FEATURE_EXCEPT = False
try:
outFeat.setGeometry( int_geom )
outFeat.setAttributeMap( ftools_utils.combineVectorAttributes( atMapA, atMapB ) )
writer.addFeature( outFeat )
except Exception, err:
FEATURE_EXCEPT = False
else:
try:
outFeat.setGeometry( int_geom )
outFeat.setAttributeMap( ftools_utils.combineVectorAttributes( atMapA, atMapB ) )
writer.addFeature( outFeat )
except Exception, err:
FEATURE_EXCEPT = False
else:
# this only happends if the bounding box
# intersects, but the geometry doesn't
Expand Down

0 comments on commit 049f5ca

Please sign in to comment.