Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[processing] fix integer numbers handling
- Loading branch information
Showing
with
4 additions
and
1 deletion.
-
+4
−1
python/plugins/processing/algs/saga/SagaAlgorithm.py
|
@@ -258,7 +258,10 @@ def processAlgorithm(self, parameters, context, feedback): |
|
|
for i in range(4): |
|
|
command += ' -{} {}'.format(self.extentParamNames[i], float(values[i]) + offset[i]) |
|
|
elif isinstance(param, QgsProcessingParameterNumber): |
|
|
command += ' -{} {}'.format(param.name(), self.parameterAsDouble(parameters, param.name(), context)) |
|
|
if param.dataType() == QgsProcessingParameterNumber.Integer: |
|
|
command += ' -{} {}'.format(param.name(), self.parameterAsInt(parameters, param.name(), context)) |
|
|
else: |
|
|
command += ' -{} {}'.format(param.name(), self.parameterAsDouble(parameters, param.name(), context)) |
|
|
elif isinstance(param, QgsProcessingParameterEnum): |
|
|
command += ' -{} {}'.format(param.name(), self.parameterAsEnum(parameters, param.name(), context)) |
|
|
elif isinstance(param, (QgsProcessingParameterString, QgsProcessingParameterFile)): |
|
|