Class: QgsMeshElevationAveragingMethod

Elevation averaging method averages the values based on range defined absolute value to the model’s datum.

The range is defined in the same length units as defined by model (e.g. meters)

For example one can pull out results irrespective of water level change such as between -16m and -10m. The elevation will be truncated at the surface and bed levels.

Added in version 3.12.

Class Hierarchy

Inheritance diagram of qgis.core.QgsMeshElevationAveragingMethod

Base classes

QgsMesh3DAveragingMethod

Abstract class for interpolating 3d stacked mesh data to 2d data.

Methods

endElevation

Returns end elevation

startElevation

Returns start elevation

class qgis.core.QgsMeshElevationAveragingMethod[source]

Bases: QgsMesh3DAveragingMethod

__init__()
__init__(startElevation: float, endElevation: float)

Constructs elevation averaging method

Parameters:
  • startElevation (float) – start elevation (absolute to model’s datum)

  • endElevation (float) – end elevation (absolute to model’s datum)

__init__(a0: QgsMeshElevationAveragingMethod)
Parameters:

a0 (QgsMeshElevationAveragingMethod)

endElevation(self) float[source]

Returns end elevation

Return type:

float

startElevation(self) float[source]

Returns start elevation

Return type:

float