File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
python/plugins/fTools/tools Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -1147,18 +1147,20 @@ def union( self ):
1147
1147
temp_list = int_geom .asGeometryCollection ()
1148
1148
for i in temp_list :
1149
1149
if i .type () == geom .type ():
1150
+ int_geom = QgsGeometry ( i )
1150
1151
try :
1151
- outFeat .setGeometry ( j )
1152
+ outFeat .setGeometry ( int_geom )
1152
1153
outFeat .setAttributeMap ( ftools_utils .combineVectorAttributes ( atMapA , atMapB ) )
1153
1154
writer .addFeature ( outFeat )
1154
1155
except Exception , err :
1155
1156
FEATURE_EXCEPT = False
1156
- try :
1157
- outFeat .setGeometry ( int_geom )
1158
- outFeat .setAttributeMap ( ftools_utils .combineVectorAttributes ( atMapA , atMapB ) )
1159
- writer .addFeature ( outFeat )
1160
- except Exception , err :
1161
- FEATURE_EXCEPT = False
1157
+ else :
1158
+ try :
1159
+ outFeat .setGeometry ( int_geom )
1160
+ outFeat .setAttributeMap ( ftools_utils .combineVectorAttributes ( atMapA , atMapB ) )
1161
+ writer .addFeature ( outFeat )
1162
+ except Exception , err :
1163
+ FEATURE_EXCEPT = False
1162
1164
else :
1163
1165
# this only happends if the bounding box
1164
1166
# intersects, but the geometry doesn't
You can’t perform that action at this time.
0 commit comments