Skip to content
Permalink
Browse files

[needs-docs] Fix parameter's label and some distance default value

more coherent with meters
  • Loading branch information
DelazJ authored and nyalldawson committed Aug 29, 2018
1 parent 4e1d29e commit 00b0e3b0bc683297850dae04d7e1a3f386210589
@@ -96,10 +96,10 @@ def initAlgorithm(self, config=None):

self.addParameter(QgsProcessingParameterDistance(self.HSPACING,
self.tr('Horizontal spacing'),
0.0001, self.CRS, False, 0, 1000000000.0))
1.0, self.CRS, False, 0, 1000000000.0))
self.addParameter(QgsProcessingParameterDistance(self.VSPACING,
self.tr('Vertical spacing'),
0.0001, self.CRS, False, 0, 1000000000.0))
1.0, self.CRS, False, 0, 1000000000.0))
self.addParameter(QgsProcessingParameterDistance(self.HOVERLAY,
self.tr('Horizontal overlay'),
0.0, self.CRS, False, 0, 1000000000.0))
@@ -98,7 +98,7 @@ def initAlgorithm(self, config=None):
[QgsProcessing.TypeVectorPoint]))

self.addParameter(QgsProcessingParameterDistance(self.RADIUS,
self.tr('Radius (layer units)'),
self.tr('Radius'),
100.0, self.INPUT, False, 0.0, 9999999999.99))

radius_field_param = QgsProcessingParameterField(self.RADIUS_FIELD,
@@ -62,10 +62,10 @@ def initAlgorithm(self, config=None):
self.tr('Input layer'), [QgsProcessing.TypeVectorPoint]))
self.addParameter(QgsProcessingParameterDistance(self.PROXIMITY,
self.tr('Minimum distance to other points'), parentParameterName='INPUT',
minValue=0.00001, defaultValue=0.00015))
minValue=0.00001, defaultValue=1.0))
self.addParameter(QgsProcessingParameterDistance(self.DISTANCE,
self.tr('Displacement distance'), parentParameterName='INPUT',
minValue=0.00001, defaultValue=0.00015))
minValue=0.00001, defaultValue=1.0))
self.addParameter(QgsProcessingParameterBoolean(self.HORIZONTAL,
self.tr('Horizontal distribution for two point case')))
self.addParameter(QgsProcessingParameterFeatureSink(self.OUTPUT, self.tr('Displaced'), QgsProcessing.TypeVectorPoint))
@@ -62,7 +62,7 @@ def initAlgorithm(self, config=None):
QgsProcessing.TypeVectorLine,
QgsProcessing.TypeVectorPolygon]))

self.addParameter(QgsProcessingParameterDistance(self.TOLERANCE, self.tr('Tolerance (layer units)'), parentParameterName=self.INPUT,
self.addParameter(QgsProcessingParameterDistance(self.TOLERANCE, self.tr('Tolerance'), parentParameterName=self.INPUT,
minValue=0.00000001, maxValue=9999999999, defaultValue=10.0))

self.modes = [self.tr('Prefer aligning nodes, insert extra vertices where required'),

0 comments on commit 00b0e3b

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