Skip to content

Commit 00ca8cc

Browse files
committedJun 16, 2017
Changes SAGA io_gdal RESAMPLING method to B-Spline Interpolation, as SAGA default, and add the Resampling Method parameter to SAGA Raster Calculator, as explained in https://issues.qgis.org/issues/16646 - Backport to 2.18
1 parent 7634b0b commit 00ca8cc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def exportRasterLayer(self, source):
327327
destFilename = getTempFilenameInTempFolder(filename + '.sgrd')
328328
self.exportedLayers[source] = destFilename
329329
sessionExportedLayers[source] = destFilename
330-
return 'io_gdal 0 -TRANSFORM 1 -RESAMPLING 0 -GRIDS "' + destFilename + '" -FILES "' + source + '"'
330+
return 'io_gdal 0 -TRANSFORM 1 -RESAMPLING 3 -GRIDS "' + destFilename + '" -FILES "' + source + '"'
331331

332332
def checkParameterValuesBeforeExecuting(self):
333333
"""

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ AllowUnmatching
44
ParameterRaster|GRIDS|Main input layer|False
55
ParameterMultipleInput|XGRIDS|Additional layers|3|True
66
ParameterString|FORMULA|Formula|
7+
ParameterSelection|RESAMPLING|Resampling Method|[0] Nearest Neighbour;[1] Bilinear Interpolation;[2] Bicubic Spline Interpolation;[3] B-Spline Interpolation|3
78
ParameterBoolean|USE_NODATA|Use NoData|False
89
ParameterSelection|TYPE|Output Data Type|[0] bit;[1] unsigned 1 byte integer;[2] signed 1 byte integer;[3] unsigned 2 byte integer;[4] signed 2 byte integer;[5] unsigned 4 byte integer;[6] signed 4 byte integer;[7] 4 byte floating point number;[8] 8 byte floating point number|7
910
OutputRaster|RESULT|Calculated

0 commit comments

Comments
 (0)
Please sign in to comment.