Class: QgsTinInterpolator¶
Interpolation in a triangular irregular network
Class Hierarchy¶
Base classes¶
Interface class for interpolations. |
Methods
Sets the optional sink for saving the triangulation features. |
Static Methods
Returns the fields output by features when saving the triangulation. |
Attributes
- 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 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.Linear)
feedback (Optional[QgsFeedback] = None)
- __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()
.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: