Class: QgsRasterDemTerrainProvider¶
A terrain provider where the terrain source is a raster DEM layer.
Added in version 3.26.
Class Hierarchy¶
Base classes¶
Abstract base class for terrain providers. |
Methods
Returns the raster layer with elevation model to be used as the terrain source. |
|
Sets the raster layer with elevation model to be used as the terrain source. |
- class qgis.core.QgsRasterDemTerrainProvider[source]¶
Bases:
QgsAbstractTerrainProvider
- layer(self) QgsRasterLayer | None [source]¶
Returns the raster layer with elevation model to be used as the terrain source.
See also
- Return type:
Optional[QgsRasterLayer]
- setLayer(self, layer: QgsRasterLayer | None)[source]¶
Sets the raster
layer
with elevation model to be used as the terrain source.See also
- Parameters:
layer (Optional[QgsRasterLayer])