Class: QgsDemTerrainSettings¶
Terrain settings for a terrain generator that uses a raster DEM layer to build terrain.
Warning
This is not considered stable API, and may change in future QGIS releases. It is exposed to the Python bindings as a tech preview only.
Added in version 3.42.
Class Hierarchy¶
Base classes¶
Base class for all terrain settings classes. |
Methods
Returns the raster layer with elevation model to be used for terrain generation. |
|
Returns the resolution of the terrain (how many elevation samples are taken on one side of a terrain tile). |
|
Sets the raster layer with elevation model to be used for terrain generation. |
|
Sets the resolution of the terrain (how many elevation samples are taken on one side of a terrain tile). |
|
Sets the skirt height (in world units). |
|
Returns the skirt height (in world units). |
|
Static Methods
Creates a new instance of a |
- class qgis._3d.QgsDemTerrainSettings[source]¶
Bases:
QgsAbstractTerrainSettings
- copyCommonProperties()¶
- static create() QgsAbstractTerrainSettings | None [source]¶
Creates a new instance of a
QgsDemTerrainSettings
object.- Return type:
Optional[QgsAbstractTerrainSettings]
- equalsCommon()¶
- layer(self) QgsRasterLayer | None [source]¶
Returns the raster layer with elevation model to be used for terrain generation.
See also
- Return type:
Optional[QgsRasterLayer]
- readCommonProperties()¶
- resolution(self) int [source]¶
Returns the resolution of the terrain (how many elevation samples are taken on one side of a terrain tile).
See also
- Return type:
int
- setLayer(self, layer: QgsRasterLayer | None)[source]¶
Sets the raster
layer
with elevation model to be used for terrain generation.See also
- Parameters:
layer (Optional[QgsRasterLayer])
- setResolution(self, resolution: int)[source]¶
Sets the
resolution
of the terrain (how many elevation samples are taken on one side of a terrain tile).See also
- Parameters:
resolution (int)
- setSkirtHeight(self, height: float)[source]¶
Sets the skirt
height
(in world units).Skirts at the edges of terrain tiles help hide cracks between adjacent tiles.
See also
- Parameters:
height (float)
- skirtHeight(self) float [source]¶
Returns the skirt height (in world units).
Skirts at the edges of terrain tiles help hide cracks between adjacent tiles.
See also
- Return type:
float
- writeCommonProperties()¶