Skip to content

Commit e5597e2

Browse files
committedMar 13, 2014
Merge pull request #1236 from aharfoot/master
fix identation in Processing Dissolve tool (fix #9764) add polylines support
2 parents 551648f + ed5f778 commit e5597e2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎python/plugins/processing/algs/ftools/Dissolve.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ def processAlgorithm(self, progress):
8585
except:
8686
raise GeoAlgorithmExecutionException(
8787
'Geometry exception while dissolving')
88-
outFeat.setAttributes(attrs)
89-
writer.addFeature(outFeat)
88+
outFeat.setAttributes(attrs)
89+
writer.addFeature(outFeat)
9090
else:
9191
unique = vector.getUniqueValues(vlayerA, int(field))
9292
nFeat = nFeat * len(unique)
@@ -125,7 +125,8 @@ def defineCharacteristics(self):
125125
self.name = 'Dissolve'
126126
self.group = 'Vector geometry tools'
127127
self.addParameter(ParameterVector(Dissolve.INPUT, 'Input layer',
128-
[ParameterVector.VECTOR_TYPE_POLYGON]))
128+
[ParameterVector.VECTOR_TYPE_POLYGON,
129+
ParameterVector.VECTOR_TYPE_LINE]))
129130
self.addParameter(ParameterBoolean(Dissolve.DISSOLVE_ALL,
130131
'Dissolve all (do not use field)', True))
131132
self.addParameter(ParameterTableField(Dissolve.FIELD, 'Unique ID field'

0 commit comments

Comments
 (0)
Please sign in to comment.