diff --git a/python/plugins/processing/algs/qgis/RandomPointsAlongLines.py b/python/plugins/processing/algs/qgis/RandomPointsAlongLines.py index 15d8f4f97619..9127bd21d025 100644 --- a/python/plugins/processing/algs/qgis/RandomPointsAlongLines.py +++ b/python/plugins/processing/algs/qgis/RandomPointsAlongLines.py @@ -51,9 +51,9 @@ def defineCharacteristics(self): self.addParameter(ParameterVector(self.VECTOR, self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_LINE])) self.addParameter(ParameterNumber(self.POINT_NUMBER, - self.tr('Number of points'), 1, 9999999, 1)) + self.tr('Number of points'), 1, None, 1)) self.addParameter(ParameterNumber(self.MIN_DISTANCE, - self.tr('Minimum distance'), 0.0, 9999999.0, 0.0)) + self.tr('Minimum distance'), 0.0, None, 0.0)) self.addOutput(OutputVector(self.OUTPUT, self.tr('Random points'))) diff --git a/python/plugins/processing/algs/qgis/RandomPointsExtent.py b/python/plugins/processing/algs/qgis/RandomPointsExtent.py index 581d31a8a56f..05b357a14338 100644 --- a/python/plugins/processing/algs/qgis/RandomPointsExtent.py +++ b/python/plugins/processing/algs/qgis/RandomPointsExtent.py @@ -52,9 +52,9 @@ def defineCharacteristics(self): self.addParameter(ParameterExtent(self.EXTENT, self.tr('Input extent'))) self.addParameter(ParameterNumber(self.POINT_NUMBER, - self.tr('Points number'), 1, 9999999, 1)) + self.tr('Points number'), 1, None, 1)) self.addParameter(ParameterNumber(self.MIN_DISTANCE, - self.tr('Minimum distance'), 0.0, 9999999, 0.0)) + self.tr('Minimum distance'), 0.0, None, 0.0)) self.addOutput(OutputVector(self.OUTPUT, self.tr('Random points'))) diff --git a/python/plugins/processing/algs/qgis/RandomPointsLayer.py b/python/plugins/processing/algs/qgis/RandomPointsLayer.py index c0a8e8786a14..54cebea5303b 100644 --- a/python/plugins/processing/algs/qgis/RandomPointsLayer.py +++ b/python/plugins/processing/algs/qgis/RandomPointsLayer.py @@ -51,9 +51,9 @@ def defineCharacteristics(self): self.addParameter(ParameterVector(self.VECTOR, self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_POLYGON])) self.addParameter(ParameterNumber(self.POINT_NUMBER, - self.tr('Points number'), 1, 9999999, 1)) + self.tr('Points number'), 1, None, 1)) self.addParameter(ParameterNumber(self.MIN_DISTANCE, - self.tr('Minimum distance'), 0.0, 9999999, 0.0)) + self.tr('Minimum distance'), 0.0, None, 0.0)) self.addOutput(OutputVector(self.OUTPUT, self.tr('Random points'))) diff --git a/python/plugins/processing/algs/qgis/RandomPointsPolygonsFixed.py b/python/plugins/processing/algs/qgis/RandomPointsPolygonsFixed.py index 72f86bd14916..0c924c1fbd85 100644 --- a/python/plugins/processing/algs/qgis/RandomPointsPolygonsFixed.py +++ b/python/plugins/processing/algs/qgis/RandomPointsPolygonsFixed.py @@ -59,9 +59,9 @@ def defineCharacteristics(self): self.addParameter(ParameterSelection(self.STRATEGY, self.tr('Sampling strategy'), self.strategies, 0)) self.addParameter(ParameterNumber(self.VALUE, - self.tr('Number or density of points'), 0.0001, 9999999.0, 1.0)) + self.tr('Number or density of points'), 0.0001, None, 1.0)) self.addParameter(ParameterNumber(self.MIN_DISTANCE, - self.tr('Minimum distance'), 0.0, 9999999, 0.0)) + self.tr('Minimum distance'), 0.0, None, 0.0)) self.addOutput(OutputVector(self.OUTPUT, self.tr('Random points'))) diff --git a/python/plugins/processing/algs/qgis/RandomPointsPolygonsVariable.py b/python/plugins/processing/algs/qgis/RandomPointsPolygonsVariable.py index f631a7509ef6..2d87ffc76dad 100644 --- a/python/plugins/processing/algs/qgis/RandomPointsPolygonsVariable.py +++ b/python/plugins/processing/algs/qgis/RandomPointsPolygonsVariable.py @@ -63,7 +63,7 @@ def defineCharacteristics(self): self.tr('Number field'), self.VECTOR, ParameterTableField.DATA_TYPE_NUMBER)) self.addParameter(ParameterNumber(self.MIN_DISTANCE, - self.tr('Minimum distance'), 0.0, 9999999, 0.0)) + self.tr('Minimum distance'), 0.0, None, 0.0)) self.addOutput(OutputVector(self.OUTPUT, self.tr('Random points'))) def processAlgorithm(self, progress):