Skip to content

Commit

Permalink
[needs-docs] Fix parameter's label and some distance default value
Browse files Browse the repository at this point in the history
more coherent with meters

(cherry picked from commit 00b0e3b)
  • Loading branch information
DelazJ authored and nyalldawson committed Aug 31, 2018
1 parent 4d6211d commit 5bb7818
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/qgis/Grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/Heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/qgis/PointsDisplacement.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,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))
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/SnapGeometries.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,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'),
Expand Down

0 comments on commit 5bb7818

Please sign in to comment.