Skip to content

Commit

Permalink
Updates to union geoprocessing tool: Fixes ##1865; Note: Misformed ge…
Browse files Browse the repository at this point in the history
…ometries still an issue with some complex geometries

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11341 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
cfarmer committed Aug 10, 2009
1 parent 3c6a232 commit 777b175
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/plugins/fTools/tools/doGeoprocessing.py
Expand Up @@ -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 )
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 777b175

Please sign in to comment.