Skip to content
Permalink
Browse files

[processing] fixes in SAGA algorithm after latest changes

  • Loading branch information
volaya committed Aug 22, 2017
1 parent ce14633 commit 7ca8de9ffff0b92a8a7896bbbb6aa9f7afde3416
Showing with 1 addition and 3 deletions.
  1. +1 −3 python/plugins/processing/algs/saga/SagaAlgorithm.py
@@ -128,16 +128,14 @@ def defineCharacteristicsFromFile(self):
self.addOutput(getOutputFromString(line))
line = lines.readline().strip('\n').strip()
hasRaster = False
hasHardcodedResampling = False
for param in self.parameters:
if (isinstance(param, ParameterRaster) or
(isinstance(param, ParameterMultipleInput)
and param.type == ParameterMultipleInput.TYPE_RASTER)):
hasRaster = True
break;

if (not self.noResamplingChoice and
not self.forceNearestNeighbour and hasRaster):
if (not self.noResamplingChoice and hasRaster):
param = ParameterSelection(self.RESAMPLING, "Resampling method", ["Nearest Neighbour", "Bilinear Interpolation", "Bicubic Spline Interpolation", "B-Spline Interpolation"], 3)
param.isAdvanced = True
self.addParameter(param)

0 comments on commit 7ca8de9

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