Skip to content
Permalink
Browse files
[processing] fixed wrong parameter type definition in buffer algs
  • Loading branch information
volaya committed Dec 5, 2016
1 parent 3ebc6db commit 42b8ee9f193e793b9164ce25d372e294cb7713a9
Showing with 5 additions and 4 deletions.
  1. +3 −2 python/plugins/processing/algs/gdal/ogr2ogrbuffer.py
  2. +2 −2 python/plugins/processing/algs/grass7/description/v.buffer.distance.txt
@@ -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
@@ -58,8 +59,8 @@ def defineCharacteristics(self):
self.addParameter(ParameterString(self.GEOMETRY,
self.tr('Geometry column name ("geometry" for Shapefiles, may be different for other formats)'),
'geometry', optional=False))
self.addParameter(ParameterString(self.DISTANCE,
self.tr('Buffer distance'), '1000', optional=False))
self.addParameter(ParameterNumber(self.DISTANCE,
self.tr('Buffer distance'), None, None, 100.0, optional=False))
self.addParameter(ParameterBoolean(self.DISSOLVEALL,
self.tr('Dissolve all results'), False))
self.addParameter(ParameterTableField(self.FIELD,
@@ -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
OutputVector|output|Buffer

0 comments on commit 42b8ee9

Please sign in to comment.