Preparing the QGIS project
Declaring the elevation layers
The module uses the raster layers declared as elevation surfaces in QGIS Desktop, with the same settings as the QGIS profile tool:
Open the properties of the layer (DTM, DSM…), Elevation tab.
Choose the Represents Elevation Surface mode (before QGIS 3.38: check Represents elevation surface).
If needed, set:
the band holding the elevation;
the Z scale and Z offset (e.g. a DEM stored in centimetres: scale 0.01);
the profile symbology (line, fill below, fill above) and its colours: the graph of the WebGIS uses them;
Show by default in elevation profile plots: the layer is then checked when the tool opens.
Save the project and publish it in Lizmap as usual.
The order of the layers and their groups in the panel follow the layer tree of the project, including the layers hidden in the WebGIS legend.
Rights and publication
A layer the user may not read (Lizmap rights) is not listed.
A layer excluded from the WMS publication of the project (), directly or through its group, is never listed.
Copernicus GLO-30
Besides the project layers, the tool always offers Copernicus GLO-30, a worldwide 30 m
model read online. It is checked when the tool opens only if the project has no elevation
layer. The QGIS Server administrator can disable it (ELEVATIONPROFILE_COPERNICUS=0, see
the plugin documentation).
Good to know: it is a surface model (buildings and vegetation included), and its heights refer to the EGM2008 geoid, not to a national vertical datum (in France, NGF-IGN69): expect differences of a few decimetres with a local DEM.