Skip to content
Permalink
Browse files

Updates to union geoprocessing tool: Fixes ##1865; Note: Misformed ge…

…ometries still an issue with some complex geometries

git-svn-id: http://svn.osgeo.org/qgis/trunk@11341 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
cfarmer
cfarmer committed Aug 10, 2009
1 parent c0a247e commit 724bd28ad9694b8e71b797739f3341f018040a35
Showing with 2 additions and 3 deletions.
  1. +2 −3 python/plugins/fTools/tools/doGeoprocessing.py
@@ -1023,9 +1023,8 @@ def union( self ):
try:
if geom.intersects( tmpGeom ):
found = True
diff_geom = QgsGeometry( geom.difference( tmpGeom ) )#
diff_geom = QgsGeometry( geom.difference( tmpGeom ) )
int_geom = QgsGeometry( geom.intersection( tmpGeom ) )
print "found"
if int_geom.wkbType() == 7:
int_com = geom.combine( tmpGeom )
int_sym = geom.symDifference( tmpGeom )
@@ -1061,7 +1060,7 @@ def union( self ):
if len(intersects) <= 0:
try:
outFeat.setGeometry( diff_geom )
outFeat.setAttributeMap( atMapA )
outFeat.setAttributeMap( atMap )
writer.addFeature( outFeat )
except:
FEATURE_EXCEPT = False

0 comments on commit 724bd28

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