Skip to content
Permalink
Browse files

fix #5617. Patch submitted by Salvatore Larosa, thanks!

  • Loading branch information
alexbruy committed May 22, 2012
1 parent a76d629 commit 049f5ca83a93b5900d2c828b213db566c4f7ac9c
Showing with 9 additions and 7 deletions.
  1. +9 −7 python/plugins/fTools/tools/doGeoprocessing.py
@@ -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

0 comments on commit 049f5ca

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