Skip to content

Commit 22162b9

Browse files
authoredJul 22, 2017
Merge pull request #4903 from NaturalGIS/master
[processing] fix SAGA LTR mosaiking tool
2 parents 89ffecb + dfc9285 commit 22162b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎python/plugins/processing/algs/saga/SagaAlgorithm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def processAlgorithm(self, parameters, context, feedback):
181181
layers = param.value.split(';')
182182
if layers is None or len(layers) == 0:
183183
continue
184-
if param.datatype == dataobjects.TYPE_RASTER:
184+
if param.datatype == ParameterMultipleInput.TYPE_RASTER:
185185
for i, layerfile in enumerate(layers):
186186
if layerfile.endswith('sdat'):
187187
layerfile = param.value[:-4] + "sgrd"
@@ -358,7 +358,7 @@ def checkParameterValues(self, parameters, context):
358358
if isinstance(param, ParameterRaster):
359359
files = [parameters[param.name()]]
360360
elif (isinstance(param, ParameterMultipleInput) and
361-
param.datatype == dataobjects.TYPE_RASTER):
361+
param.datatype == ParameterMultipleInput.TYPE_RASTER):
362362
if param.value is not None:
363363
files = param.value.split(";")
364364
for f in files:

‎python/plugins/processing/algs/saga/description/Mosaicking.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ AllowUnmatching
44
ParameterMultipleInput|GRIDS|Input Grids|3|False
55
ParameterString|NAME|Name|Mosaic
66
ParameterSelection|TYPE|Preferred data storage type|[0] 1 bit;[1] 1 byte unsigned integer;[2] 1 byte signed integer;[3] 2 byte unsigned integer;[4] 2 byte signed integer;[5] 4 byte unsigned integer;[6] 4 byte signed integer;[7] 4 byte floating point;[8] 8 byte floating point|7
7-
ParameterSelection|INTERPOL|Interpolation|[0] Nearest Neighbor;[1] Bilinear Interpolation;[2] Inverse Distance Interpolation;[3] Bicubic Spline Interpolation;[4] B-Spline Interpolation|0
7+
ParameterSelection|RESAMPLING|Interpolation|[0] Nearest Neighbor;[1] Bilinear Interpolation;[2] Inverse Distance Interpolation;[3] Bicubic Spline Interpolation;[4] B-Spline Interpolation|0
88
ParameterSelection|OVERLAP|Overlapping Areas|[0] first;[1] last;[2] minimum;[3] maximum;[4] mean;[5] blend boundary;[6] feathering|1
99
ParameterNumber|BLEND_DIST|Blending Distance|0.0|None|10.0
1010
ParameterSelection|MATCH|Match|[0] none;[1] regression|0

0 commit comments

Comments
 (0)
Please sign in to comment.