Skip to content

Commit b5eefa5

Browse files
author
cfarmer
committed
Additional updates to 'Union' geoprocessing tool:Fixes #1865 again, this time properly! Should also fix other complaints regarding missing features in output shapefile.
git-svn-id: http://svn.osgeo.org/qgis/trunk@11347 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 456cef1 commit b5eefa5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

python/plugins/fTools/tools/doGeoprocessing.py

+8
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,14 @@ def union( self ):
10361036
except:
10371037
FEATURE_EXCEPT = False
10381038
continue
1039+
else:
1040+
try:
1041+
outFeat.setGeometry( geom )
1042+
outFeat.setAttributeMap( atMapA )
1043+
writer.addFeature( outFeat )
1044+
except:
1045+
FEATURE_EXCEPT = False
1046+
continue
10391047
except:
10401048
GEOS_EXCEPT = False
10411049
found = False

0 commit comments

Comments
 (0)