Skip to content
Permalink
Browse files

Merge pull request #1236 from aharfoot/master

fix identation in Processing Dissolve tool (fix #9764)
add polylines support
  • Loading branch information
alexbruy committed Mar 13, 2014
2 parents 551648f + ed5f778 commit e5597e26aa6173ca19683b1caece3ba754f59e2f
Showing with 4 additions and 3 deletions.
  1. +4 −3 python/plugins/processing/algs/ftools/Dissolve.py
@@ -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)
@@ -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'

0 comments on commit e5597e2

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