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 7ca8de9
Showing 1 changed file with 1 addition and 3 deletions.
@@ -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.