mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
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
This commit is contained in:
parent
cb1f98f020
commit
b49f53bac8
@ -345,7 +345,7 @@ class SagaAlgorithm(GeoAlgorithm):
|
||||
destFilename = getTempFilenameInTempFolder(filename + '.sgrd')
|
||||
self.exportedLayers[source] = destFilename
|
||||
sessionExportedLayers[source] = destFilename
|
||||
return 'io_gdal 0 -TRANSFORM 1 -RESAMPLING 0 -GRIDS "' + destFilename + '" -FILES "' + source + '"'
|
||||
return 'io_gdal 0 -TRANSFORM 1 -RESAMPLING 3 -GRIDS "' + destFilename + '" -FILES "' + source + '"'
|
||||
|
||||
def checkParameterValues(self, parameters, context):
|
||||
"""
|
||||
|
@ -4,6 +4,7 @@ AllowUnmatching
|
||||
ParameterRaster|GRIDS|Main input layer|False
|
||||
ParameterMultipleInput|XGRIDS|Additional layers|3|True
|
||||
ParameterString|FORMULA|Formula|
|
||||
ParameterSelection|RESAMPLING|Resampling Method|[0] Nearest Neighbour;[1] Bilinear Interpolation;[2] Bicubic Spline Interpolation;[3] B-Spline Interpolation|3
|
||||
ParameterBoolean|USE_NODATA|Use NoData|False
|
||||
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
|
||||
OutputRaster|RESULT|Calculated
|
||||
|
Loading…
x
Reference in New Issue
Block a user