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 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.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
()¶
-
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().
See also
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()
See also
New in version 3.0.
- Return type