Skip to main content
This function performs interpolation on a raster using the Inverse Distance Weighted (IDW) method. This method estimates cell values by averaging the values of sample data points in the vicinity of each processing cell. The influence of a sample point on the interpolated value is inversely proportional to the distance from the cell being estimated, with nearer points having more influence or weight in the averaging process. This technique is effective in scenarios where continuity of spatial data is important, and it is essential to estimate values for locations that do not have direct measurements, often represented by NaN or noDataValue in raster data.
This method assumes that the spatial influence of a variable diminishes with distance. In geospatial analysis, this means features or phenomena closer to a point of interest are given more weight than those further away. For example, in environmental data analysis, measurements from nearby locations have a greater impact on interpolated values than distant ones, reflecting the natural gradation and spatial continuity.
RS_Interpolate

Signatures

RS_Interpolate(raster: Raster)
RS_Interpolate(raster: Raster, power: Double)
RS_Interpolate(raster: Raster, power: Double, mode: String)
RS_Interpolate(raster: Raster, power: Double, mode: String, numPointsOrRadius: Double)
RS_Interpolate(raster: Raster, power: Double, mode: String, numPointsOrRadius: Double, maxRadiusOrMinPoints: Double)
RS_Interpolate(raster: Raster, power: Double, mode: String, numPointsOrRadius: Double, maxRadiusOrMinPoints: Double, band: Integer)

Parameters

raster
Raster
required
The input raster.
power
Double
The power value.
mode
String
The mode value.
numPointsOrRadius
Double
The num points or radius value.
maxRadiusOrMinPoints
Double
The max radius or min points value.
band
Integer
The band index.

Return type

The resulting raster.

Example

SELECT RS_Interpolate(raster, 1, 2.0, 'Variable', 12, 1000)