Class: QgsIDWInterpolator

Inverse distance weight interpolator.

Class Hierarchy

Inheritance diagram of qgis.analysis.QgsIDWInterpolator

Base classes

QgsInterpolator

Interface class for interpolations.

Methods

distanceCoefficient

Returns the distance coefficient, the parameter that sets how the values are weighted with distance.

setDistanceCoefficient

Sets the distance coefficient, the parameter that sets how the values are weighted with distance.

class qgis.analysis.QgsIDWInterpolator[source]

Bases: QgsInterpolator

__init__(layerData: Iterable[QgsInterpolator.LayerData])

Constructor for QgsIDWInterpolator, with the specified layerData sources.

Parameters:

layerData (Iterable[QgsInterpolator.LayerData])

__init__(a0: QgsIDWInterpolator)
Parameters:

a0 (QgsIDWInterpolator)

distanceCoefficient(self) float[source]

Returns the distance coefficient, the parameter that sets how the values are weighted with distance. Smaller values mean sharper peaks at the data points. The default is a coefficient of 2.

Point values are weighted by 1 / ( distance ^ coefficient ).

Return type:

float

setDistanceCoefficient(self, coefficient: float)[source]

Sets the distance coefficient, the parameter that sets how the values are weighted with distance. Smaller values mean sharper peaks at the data points.

Point values are weighted by 1 / ( distance ^ coefficient ).

Parameters:

coefficient (float)