Skip to content
Permalink
Browse files

Revert last commit

This reverts commit 5cb6dd7.
  • Loading branch information
alexbruy committed May 22, 2012
1 parent 5cb6dd7 commit a76d629f19971fa90c79428eafd516743cc6e877
Showing with 6 additions and 10 deletions.
  1. +6 −10 python/plugins/fTools/tools/doGeoprocessing.py
@@ -1145,18 +1145,14 @@ def union( self ):
if int_geom.wkbType() == 0:
# intersection produced different geometry types
temp_list = int_geom.asGeometryCollection()
int_geom = []
for i in temp_list:
if i.type() == geom.type():
int_geom.append( QgsGeometry( i ) )
if len(int_geom) > 1:
for j in int_geom:
try:
outFeat.setGeometry( j )
outFeat.setAttributeMap( ftools_utils.combineVectorAttributes( atMapA, atMapB ) )
writer.addFeature( outFeat )
except Exception, err:
FEATURE_EXCEPT = False
try:
outFeat.setGeometry( j )
outFeat.setAttributeMap( ftools_utils.combineVectorAttributes( atMapA, atMapB ) )
writer.addFeature( outFeat )
except Exception, err:
FEATURE_EXCEPT = False
try:
outFeat.setGeometry( int_geom )
outFeat.setAttributeMap( ftools_utils.combineVectorAttributes( atMapA, atMapB ) )

0 comments on commit a76d629

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