Skip to content


Browse files Browse the repository at this point in the history
[processing] fixed wrong parameter type definition in buffer algs
  • Loading branch information
volaya committed Dec 5, 2016
1 parent 3ebc6db commit 42b8ee9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions python/plugins/processing/algs/gdal/
Expand Up @@ -27,6 +27,7 @@

from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterString
from processing.core.parameters import ParameterNumber
from processing.core.parameters import ParameterBoolean
from processing.core.parameters import ParameterTableField
from processing.core.outputs import OutputVector
Expand Down Expand Up @@ -58,8 +59,8 @@ def defineCharacteristics(self):
self.addParameter(ParameterString(self.GEOMETRY,'Geometry column name ("geometry" for Shapefiles, may be different for other formats)'),
'geometry', optional=False))
self.addParameter(ParameterString(self.DISTANCE,'Buffer distance'), '1000', optional=False))
self.addParameter(ParameterNumber(self.DISTANCE,'Buffer distance'), None, None, 100.0, optional=False))
self.addParameter(ParameterBoolean(self.DISSOLVEALL,'Dissolve all results'), False))
Expand Down
Expand Up @@ -2,8 +2,8 @@ v.buffer
v.buffer.distance - Creates a buffer around features of given type.
Vector (v.*)
ParameterVector|input|Input vector layer|-1|False
ParameterString|distance|Buffer distance in map units|
ParameterString|tolerance|Maximum distance between theoretical arc and polygon segments as multiple of buffer|0.01
ParameterNumber|distance|Buffer distance in map units|None|None|100.0
ParameterNumber|tolerance|Maximum distance between theoretical arc and polygon segments as multiple of buffer|None|None|0.01
ParameterBoolean|-s|Make outside corners straight|False
ParameterBoolean|-c|Do not make caps at the ends of polylines|False

0 comments on commit 42b8ee9

Please sign in to comment.