Class: QgsTinInterpolator

class qgis.analysis.QgsTinInterpolator(inputData: Iterable[QgsInterpolator.LayerData], interpolation: QgsTinInterpolator.TinInterpolation = QgsTinInterpolator.Linear, feedback: QgsFeedback = None)

Bases: QgsInterpolator

Constructor for QgsTinInterpolator. The feedback object specifies an optional QgsFeedback object for progress reports and cancellation support. Ownership of feedback is not transferred and callers must ensure that it exists for the lifetime of this object.


Interpolation in a triangular irregular network

New in version 3.0.

  • inputData (Iterable[QgsInterpolator.LayerData]) –

  • interpolation (QgsTinInterpolator.TinInterpolation = QgsTinInterpolator.Linear) –

  • feedback

CloughTocher = 1
Linear = 0
class TinInterpolation

Bases: int

interpolatePoint(self, x: float, y: float, feedback: QgsFeedback) → Tuple[int, float]
  • x (float) –

  • y (float) –

  • feedback (QgsFeedback) –

Return type

Tuple[int, float]

setTriangulationSink(self, sink: QgsFeatureSink)

Sets the optional sink for saving the triangulation features.

The sink must be setup to accept LineString features, with fields matching those returned by triangulationFields().

New in version 3.0.


sink (QgsFeatureSink) –

triangulationFields() → QgsFields

Returns the fields output by features when saving the triangulation. These fields should be used when creating a suitable feature sink for setTriangulationSink()

New in version 3.0.

Return type