Showing with 4 additions and 3 deletions.
  1. +4 −3 python/plugins/processing/algs/ftools/Dissolve.py
7 changes: 4 additions & 3 deletions python/plugins/processing/algs/ftools/Dissolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def processAlgorithm(self, progress):
except:
raise GeoAlgorithmExecutionException(
'Geometry exception while dissolving')
outFeat.setAttributes(attrs)
writer.addFeature(outFeat)
outFeat.setAttributes(attrs)
writer.addFeature(outFeat)
else:
unique = vector.getUniqueValues(vlayerA, int(field))
nFeat = nFeat * len(unique)
Expand Down Expand Up @@ -125,7 +125,8 @@ def defineCharacteristics(self):
self.name = 'Dissolve'
self.group = 'Vector geometry tools'
self.addParameter(ParameterVector(Dissolve.INPUT, 'Input layer',
[ParameterVector.VECTOR_TYPE_POLYGON]))
[ParameterVector.VECTOR_TYPE_POLYGON,
ParameterVector.VECTOR_TYPE_LINE]))
self.addParameter(ParameterBoolean(Dissolve.DISSOLVE_ALL,
'Dissolve all (do not use field)', True))
self.addParameter(ParameterTableField(Dissolve.FIELD, 'Unique ID field'
Expand Down