[QGIS-Developer] Choose DEM layer as terrain in 3D view using PyQGIS

Abdelghani Tamort abdel.tmrt at gmail.com
Fri Apr 26 07:31:00 PDT 2024


I'm having a hard time showing my DEM raster heightmap as terrain in
QGIS's 3D view using the python API. I don't know which class is useful for
this task but I've had some guesses that didn't work so far : setting the
DEM raster layer to a QgsRasterDemTerrainProvider() / using
a QgsAbstract3DRenderer.

This is what I'm trying to have access to :
https://i.sstatic.net/FyzW3RlV.png (image containing the GUI responsible
for choosing DEM layer as terrain).

Any ideas ? Working with QGIS version 3.36.1.


Cheers,


Abdelghani TAMORT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20240426/9eda2bea/attachment.htm>


More information about the QGIS-Developer mailing list