File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
python/plugins/processing/algs/ftools Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ def processAlgorithm(self, progress):
85
85
except :
86
86
raise GeoAlgorithmExecutionException (
87
87
'Geometry exception while dissolving' )
88
- outFeat .setAttributes (attrs )
89
- writer .addFeature (outFeat )
88
+ outFeat .setAttributes (attrs )
89
+ writer .addFeature (outFeat )
90
90
else :
91
91
unique = vector .getUniqueValues (vlayerA , int (field ))
92
92
nFeat = nFeat * len (unique )
@@ -125,7 +125,8 @@ def defineCharacteristics(self):
125
125
self .name = 'Dissolve'
126
126
self .group = 'Vector geometry tools'
127
127
self .addParameter (ParameterVector (Dissolve .INPUT , 'Input layer' ,
128
- [ParameterVector .VECTOR_TYPE_POLYGON ]))
128
+ [ParameterVector .VECTOR_TYPE_POLYGON ,
129
+ ParameterVector .VECTOR_TYPE_LINE ]))
129
130
self .addParameter (ParameterBoolean (Dissolve .DISSOLVE_ALL ,
130
131
'Dissolve all (do not use field)' , True ))
131
132
self .addParameter (ParameterTableField (Dissolve .FIELD , 'Unique ID field'
You can’t perform that action at this time.
0 commit comments