Why this tool?

The elevation profile is a common need in a WebGIS: checking a slope, preparing a route, reading the relief of an archaeological section or of a field survey. This tool was designed to be simple to set up and as complete as in QGIS Desktop.

No database to prepare

  • The DEMs are read directly from the QGIS project by QGIS Server, in their original format: GeoTIFF, COG, VRT, or any raster GDAL can read (and PostGIS rasters if they are already in the project).

  • No import into PostGIS with raster2pgsql, no raster tables to tile or index, no SQL functions, no database connection to configure in Lizmap.

  • Adding a DEM means adding it to the QGIS project and declaring it as an elevation surface: it shows up in the tool at once.

The settings of QGIS Desktop

  • The tool uses the elevation properties of each layer (band, Z scale and offset) and the profile representation set in QGIS (line, fill below or above, colours). They are set once, in QGIS.

  • The layers keep their order and their groups of the layer tree.

Several models on one graph

  • All the checked layers are superposed, sampled at the same points: compare a DTM and a DSM, a recent survey and an old one, at a glance.

  • The step follows the resolution of the finest DEM, instead of a fixed number of points.

  • The worldwide Copernicus GLO-30 model is offered too, with no account nor API key, even for a project without any DEM.

Working lines, not just two points

  • Lines with as many vertices as needed, several lines at once, and editing directly on the map (move, insert, delete a vertex).

  • The graph and the map are synchronised both ways.

  • Lengths and distances are exact: planar in a metric projection, ellipsoidal otherwise.

Secure and modern

  • The Lizmap layer rights apply: everyone only sees the DEMs they may read, and the layers excluded from the WMS publication are never exposed. The WebGIS opens no direct database connection for the profile.

  • The tool is built on the recent OpenLayers of Lizmap and on modern web components: keyboard shortcuts, help next to the pointer, editable style, resizable panel.

  • On the server side, the plugin works with QGIS Server 3.34 to 4.x (Qt5 and Qt6).