File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
python/plugins/sextante/algs/ftools Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -160,14 +160,13 @@ def processAlgorithm(self, progress):
160
160
diff_geom = QgsGeometry ( geom )
161
161
atMap = [None ] * length
162
162
atMap .extend (inFeatA .attributes ())
163
- #atMap = dict( zip( range( length, length + len( atMap ) ), atMap ) )
164
163
intersects = indexB .intersects ( geom .boundingBox () )
165
164
166
165
if len (intersects ) < 1 :
167
166
try :
168
- outFeat .setGeometry ( geom )
169
- outFeat .setAttributes ( atMap )
170
- writer .addFeature ( outFeat )
167
+ outFeat .setGeometry (geom )
168
+ outFeat .setAttributes (atMap )
169
+ writer .addFeature (outFeat )
171
170
except Exception , err :
172
171
raise GeoAlgorithmExecutionException ("Feature exception while computing union" )
173
172
else :
@@ -192,7 +191,7 @@ def processAlgorithm(self, progress):
192
191
if add :
193
192
try :
194
193
outFeat .setGeometry ( diff_geom )
195
- outFeat .setAttributes ( atMapB )
194
+ outFeat .setAttributes (atMap )
196
195
writer .addFeature ( outFeat )
197
196
except Exception , err :
198
197
raise err
You can’t perform that action at this time.
0 commit comments