Class: QgsMeshTerrainProvider¶
- class qgis.core.QgsMeshTerrainProvider¶
Bases:
QgsAbstractTerrainProvider
A terrain provider that uses the Z values of a mesh layer to build a terrain surface.
New in version 3.26.
QgsMeshTerrainProvider() Constructor for QgsMeshTerrainProvider.
Methods
- rtype:
QgsMeshTerrainProvider
- rtype:
QgsCoordinateReferenceSystem
- param other:
- param x:
Returns the mesh layer to be used as the terrain source.
Reads common properties from a DOM
element
.- param element:
- param project:
Sets the mesh
layer
to be used as the terrain source.- rtype:
str
Writes common properties to a DOM
element
.- param document:
- clone(self) QgsMeshTerrainProvider ¶
- Return type:
- crs(self) QgsCoordinateReferenceSystem ¶
- Return type:
- equals(self, other: QgsAbstractTerrainProvider) bool ¶
- Parameters:
other (QgsAbstractTerrainProvider) –
- Return type:
bool
- heightAt(self, x: float, y: float) float ¶
- Parameters:
x (float) –
y (float) –
- Return type:
float
- layer(self) QgsMeshLayer ¶
Returns the mesh layer to be used as the terrain source.
See also
- Return type:
- prepare(self)¶
- readCommonProperties(self, element: QDomElement, context: QgsReadWriteContext)¶
Reads common properties from a DOM
element
.
- readXml(self, element: QDomElement, context: QgsReadWriteContext) bool ¶
- Parameters:
element (QDomElement) –
context (QgsReadWriteContext) –
- Return type:
bool
- resolveReferences(self, project: QgsProject)¶
- Parameters:
project (QgsProject) –
- setLayer(self, layer: QgsMeshLayer)¶
Sets the mesh
layer
to be used as the terrain source.See also
- Parameters:
layer (QgsMeshLayer) –
- type(self) str ¶
- Return type:
str
- writeCommonProperties(self, element: QDomElement, context: QgsReadWriteContext)¶
Writes common properties to a DOM
element
.
- writeXml(self, document: QDomDocument, context: QgsReadWriteContext) QDomElement ¶
- Parameters:
document (QDomDocument) –
context (QgsReadWriteContext) –
- Return type:
QDomElement