Skip to content

Commit

Permalink
[processing] fixes in SAGA algorithm after latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Aug 22, 2017
1 parent ce14633 commit 7ca8de9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/plugins/processing/algs/saga/SagaAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7ca8de9

Please sign in to comment.