useScale parameter controls whether to use width-height or scaleX-scaleY. If useScale is false, the provided widthOrScale and heightOrScale values will be floored to integers and considered as width and height respectively (floating point width and height are not allowed). Otherwise, they are considered as scaleX and scaleY respectively.
Currently, RS_Resample does not support skewed rasters, and hence even if a skewed reference raster is provided, its skew values are ignored. If the input raster is skewed, the output raster geometry and interpolation may be incorrect.
The default algorithm used for resampling is NearestNeighbor, and hence if a null, empty or invalid value of algorithm is provided, RS_Resample defaults to using NearestNeighbor. However, the algorithm parameter is non-optional.
Following are valid values for the algorithm parameter (Case-insensitive):
- NearestNeighbor
- Bilinear
- Bicubic
Signatures
Parameters
The input raster.
The width or scale value.
The height or scale value.
The grid x value.
The grid y value.
The use scale value.
The algorithm value.
The reference raster value.
Return type
The resulting raster.

