Skip to content
Permalink
Browse files

Merge branch 'fix_saga_paramater' into release-2_18

  • Loading branch information
alexbruy committed Sep 28, 2017
2 parents 26c61eb + c421ae7 commit 5e101aa05bcf12bd65306746ae54709727829b77
Showing with 4 additions and 5 deletions.
  1. +4 −5 python/plugins/processing/algs/saga/SagaAlgorithm.py
@@ -129,18 +129,17 @@ def defineCharacteristicsFromFile(self):
line = lines.readline().strip('\n').strip()
hasRaster = False
for param in self.parameters:
if (isinstance(param, ParameterRaster) or
(isinstance(param, ParameterMultipleInput)
and param.type == ParameterMultipleInput.TYPE_RASTER)):
if (isinstance(param, ParameterRaster) or
(isinstance(param, ParameterMultipleInput)
and param.datatype == ParameterMultipleInput.TYPE_RASTER)):
hasRaster = True
break;
break

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)


def processAlgorithm(self, progress):
commands = list()
self.exportedLayers = {}

0 comments on commit 5e101aa

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