Subgroup: other
Class: QgsIDWInterpolator¶
-
class
qgis.analysis.
QgsIDWInterpolator
¶ Bases:
qgis._analysis.QgsInterpolator
Inverse distance weight interpolator.
Methods
cacheBaseData
distanceCoefficient
Returns the distance coefficient, the parameter that sets how the values are weighted with distance. interpolatePoint
setDistanceCoefficient
Sets the distance coefficient
, the parameter that sets how the values are weighted with distance.Attributes
Canceled
FeatureGeometryError
InvalidSource
SourceBreakLines
SourcePoints
SourceStructureLines
Success
ValueAttribute
ValueM
ValueZ
-
cacheBaseData
()¶
-
distanceCoefficient
(self) → float¶ 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 ).
See also
New in version 3.0.
-
interpolatePoint
(self, x: float, y: float, feedback: QgsFeedback = None) → Tuple[int, float]¶
-
setDistanceCoefficient
(self, coefficient: float)¶ 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 ).
See also
New in version 3.0.
-