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.

QgsTinInterpolator(QgsTinInterpolator)

Interpolation in a triangular irregular network

New in version 3.0.

Parameters
  • inputData (Iterable[QgsInterpolator.LayerData]) –

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

  • feedback

CloughTocher = 1
Linear = 0
class TinInterpolation

Bases: int

cacheBaseData(self, feedback: QgsFeedback = None) → QgsInterpolator.Result

Caches the vertex and value data from the provider. All the vertex data will be held in virtual memory.

An optional feedback argument may be specified to allow cancellation and progress reports from the cache operation.

Returns

Success in case of success

interpolatePoint(self, x: float, y: float, feedback: QgsFeedback) → Tuple[int, float]
Parameters
  • 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.

Parameters

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

QgsFields