Skip to content
Permalink
Browse files

[processing] fix z factor minimum value in various raster algorithms

  • Loading branch information
nirvn committed Aug 25, 2017
1 parent 0507143 commit 922ded8d76d0f824f88fa5e360860616121c4fa9
@@ -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))
@@ -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))
@@ -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):
@@ -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):

0 comments on commit 922ded8

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