Skip to content
Permalink
Browse files
updates to geoprocessing: fix for some intersection cases
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10096 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
cfarmer committed Feb 3, 2009
1 parent ded8497 commit cdd8a34460c832d9f085b9ffa99621c74d3d50d6
Showing with 6 additions and 6 deletions.
  1. +6 −6 python/plugins/fTools/tools/doGeoprocessing.py
@@ -467,8 +467,8 @@ def intersect( self ):
tmpGeom = QgsGeometry( inFeatB.geometry() )
if geom.intersects( tmpGeom ):
atMapB = inFeatB.attributeMap()
geom = geom.intersection( tmpGeom )
outFeat.setGeometry( geom )
int_geom = geom.intersection( tmpGeom )
outFeat.setGeometry( int_geom )
outFeat.setAttributeMap( ftools_utils.combineVectorAttributes( atMapA, atMapB ) )
writer.addFeature( outFeat )
del writer
@@ -515,13 +515,13 @@ def union( self ):
tmpGeom = QgsGeometry( inFeatB.geometry() )
if geom.intersects( tmpGeom ):
found = True
diffGeom = diffGeom.difference( tmpGeom )
geom = geom.intersection( tmpGeom )
outFeat.setGeometry( geom )
diff_geom = diff_geom.difference( tmpGeom )
int_geom = geom.intersection( tmpGeom )
outFeat.setGeometry( int_geom )
outFeat.setAttributeMap( ftools_utils.combineVectorAttributes( atMapA, atMapB ) )
writer.addFeature( outFeat )
if found:
outFeat.setGeometry( diffGeom )
outFeat.setGeometry( diff_geom )
outFeat.setAttributeMap( atMapA )
writer.addFeature( outFeat )
length = len( vproviderA.fields().values() )

0 comments on commit cdd8a34

Please sign in to comment.