Class: QgsTinInterpolator

Interpolation in a triangular irregular network

Class Hierarchy

Inheritance diagram of qgis.analysis.QgsTinInterpolator

Base classes

QgsInterpolator

Interface class for interpolations.

Methods

setTriangulationSink

Sets the optional sink for saving the triangulation features.

Static Methods

triangulationFields

Returns the fields output by features when saving the triangulation.

Attributes

CloughTocher

Linear

class qgis.analysis.QgsTinInterpolator[source]

Bases: QgsInterpolator

__init__(inputData: Iterable[QgsInterpolator.LayerData], interpolation: QgsTinInterpolator.TinInterpolation = QgsTinInterpolator.Linear, feedback: QgsFeedback | None = None)

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.

Parameters:
__init__(a0: QgsTinInterpolator)
Parameters:

a0 (QgsTinInterpolator)

CloughTocher = 1
Linear = 0
class TinInterpolation

Bases: int

setTriangulationSink(self, sink: QgsFeatureSink | None)[source]

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().

Parameters:

sink (Optional[QgsFeatureSink])

static triangulationFields() QgsFields[source]

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

Return type:

QgsFields