Skip to content

Commit 724bd28

Browse files
author
cfarmer
committed
Updates to union geoprocessing tool: Fixes ##1865; Note: Misformed geometries still an issue with some complex geometries
git-svn-id: http://svn.osgeo.org/qgis/trunk@11341 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent c0a247e commit 724bd28

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

python/plugins/fTools/tools/doGeoprocessing.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,9 +1023,8 @@ def union( self ):
10231023
try:
10241024
if geom.intersects( tmpGeom ):
10251025
found = True
1026-
diff_geom = QgsGeometry( geom.difference( tmpGeom ) )#
1026+
diff_geom = QgsGeometry( geom.difference( tmpGeom ) )
10271027
int_geom = QgsGeometry( geom.intersection( tmpGeom ) )
1028-
print "found"
10291028
if int_geom.wkbType() == 7:
10301029
int_com = geom.combine( tmpGeom )
10311030
int_sym = geom.symDifference( tmpGeom )
@@ -1061,7 +1060,7 @@ def union( self ):
10611060
if len(intersects) <= 0:
10621061
try:
10631062
outFeat.setGeometry( diff_geom )
1064-
outFeat.setAttributeMap( atMapA )
1063+
outFeat.setAttributeMap( atMap )
10651064
writer.addFeature( outFeat )
10661065
except:
10671066
FEATURE_EXCEPT = False

0 commit comments

Comments
 (0)