Skip to content

Commit

Permalink
[processing] fix z factor minimum value in various raster algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Aug 25, 2017
1 parent 0507143 commit 922ded8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/Hillshade.py
Expand Up @@ -62,7 +62,7 @@ def initAlgorithm(self, config=None):
self.tr('Elevation layer')))
self.addParameter(QgsProcessingParameterNumber(self.Z_FACTOR,
self.tr('Z factor'), QgsProcessingParameterNumber.Double,
1, False, 1, 999999.99))
1, False, 0.00, 999999.99))
self.addParameter(QgsProcessingParameterNumber(self.AZIMUTH,
self.tr('Azimuth (horizontal angle)'), QgsProcessingParameterNumber.Double,
300, False, 0, 360))
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/Relief.py
Expand Up @@ -106,7 +106,7 @@ def initAlgorithm(self, config=None):
self.tr('Elevation layer')))
self.addParameter(QgsProcessingParameterNumber(self.Z_FACTOR,
self.tr('Z factor'), type=QgsProcessingParameterNumber.Double,
minValue=1.0, maxValue=999999.99, defaultValue=1.0))
minValue=0.00, maxValue=999999.99, defaultValue=1.0))
self.addParameter(QgsProcessingParameterBoolean(self.AUTO_COLORS,
self.tr('Generate relief classes automatically'),
defaultValue=False))
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/Ruggedness.py
Expand Up @@ -61,7 +61,7 @@ def initAlgorithm(self, config=None):
self.addParameter(QgsProcessingParameterNumber(self.Z_FACTOR,
self.tr('Z factor'),
QgsProcessingParameterNumber.Double,
1, False, 1, 999999.99))
1, False, 0.00, 999999.99))
self.addParameter(QgsProcessingParameterRasterDestination(self.OUTPUT, self.tr('Ruggedness')))

def name(self):
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/Slope.py
Expand Up @@ -61,7 +61,7 @@ def initAlgorithm(self, config=None):
self.tr('Elevation layer')))
self.addParameter(QgsProcessingParameterNumber(self.Z_FACTOR,
self.tr('Z factor'), QgsProcessingParameterNumber.Double,
1, False, 1, 999999.99))
1, False, 0.00, 999999.99))
self.addParameter(QgsProcessingParameterRasterDestination(self.OUTPUT, self.tr('Slope')))

def name(self):
Expand Down

0 comments on commit 922ded8

Please sign in to comment.