Class: QgsTinInterpolator¶
-
class
qgis.analysis.
QgsTinInterpolator
(inputData: Iterable[QgsInterpolator.LayerData], interpolation: QgsTinInterpolator.TinInterpolation = QgsTinInterpolator.Linear, feedback: QgsFeedback = None)¶ Bases:
qgis._analysis.QgsInterpolator
Constructor for QgsTinInterpolator. The
feedback
object specifies an optional QgsFeedback 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.QgsTinInterpolator(QgsTinInterpolator)
Interpolation in a triangular irregular network
New in version 3.0: Enums
Methods
Sets the optional
sink
for saving the triangulation features.Returns the fields output by features when saving the triangulation.
Signals
Attributes
-
CloughTocher
= 1¶
-
Linear
= 0¶
-
class
TinInterpolation
¶ Bases:
int
-
cacheBaseData
()¶
-
interpolatePoint
(self, x: float, y: float, feedback: QgsFeedback) → 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().
See also
New in version 3.0.
-
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()
See also
New in version 3.0.
-