Class: QgsTinInterpolator¶
Interpolation in a triangular irregular network.
Class Hierarchy¶
Base classes¶
Interface class for interpolations. |
Enums
Indicates the type of interpolation to be performed |
Methods
Sets the optional sink for saving the triangulation features. |
Static Methods
Returns the fields output by features when saving the triangulation. |
- class qgis.analysis.QgsTinInterpolator[source]¶
Bases:
QgsInterpolator
- __init__(inputData: Iterable[QgsInterpolator.LayerData], interpolation: QgsTinInterpolator.TinInterpolation = QgsTinInterpolator.TinInterpolation.Linear, feedback: QgsFeedback | None = None)
Constructor for QgsTinInterpolator. The
feedback
object specifies an optionalQgsFeedback
object for progress reports and cancellation support. Ownership offeedback
is not transferred and callers must ensure that it exists for the lifetime of this object.- Parameters:
inputData (Iterable[QgsInterpolator.LayerData])
interpolation (QgsTinInterpolator.TinInterpolation = QgsTinInterpolator.TinInterpolation.Linear)
feedback (Optional[QgsFeedback] = None)
- __init__(a0: QgsTinInterpolator)
- Parameters:
a0 (QgsTinInterpolator)
- class TinInterpolation(*values)¶
Bases:
IntEnum
Indicates the type of interpolation to be performed
Linear
: Linear interpolationCloughTocher
: Clough-Tocher interpolation
- 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()
.See also
- 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()
See also
- Return type: