Copernicus GLO-30
Besides the project layers, the plugin offers Copernicus DEM GLO-30, a free worldwide
elevation model at 30 m. It is read on demand from its public tiles (1° × 1°,
cloud-optimised GeoTIFF) through GDAL (/vsicurl/): only the needed bytes are downloaded.
It is always listed (unless it is disabled), and checked by default only when the project has no elevation layer.
Good to know
It is a Digital Surface Model (buildings and vegetation included), not a terrain model.
Its heights refer to the EGM2008 geoid, not to a national vertical datum (in France, NGF-IGN69): expect differences of several decimetres with a local DEM.
Ocean areas have no tiles (no value).
Its licence requires an attribution, returned in the
attributionfield ofGetElevationLayers, which the client must display: © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA; all rights reserved.QGIS Server must be able to reach the Internet (
GDAL_HTTP_PROXYbehind a proxy).
Disk cache
The tiles are made of internal blocks of 1024 × 1024 pixels: reading a single elevation means downloading and decompressing the whole block that holds it (1 to 3 MB). Every block read is therefore kept in a disk cache shared by all the QGIS Server processes (py-qgis-server runs several) and kept across restarts. A profile in an area already seen downloads nothing, not even the tile header: on a 3.6 km line, 0.02 s instead of 0.8 s on a fast connection (measured with a simulated 4 MB/s link).
Location:
ELEVATIONPROFILE_COPERNICUS_CACHE_DIR, by default~/.cache/elevationprofile-copernicusof the user running QGIS Server, or the temporary directory if it is not writable. On Debian 13,/tmpis in memory and emptied at each reboot: prefer a dedicated directory, e.g./var/cache/elevationprofile, owned by the user of QGIS Server.Size:
ELEVATIONPROFILE_COPERNICUS_CACHE_MB(default 2048). A block covers about 1000 km² (4 MB): 2 GB are enough for about the area of metropolitan France. The least recently used blocks are deleted first.0disables the cache.
Local mirror
To read the tiles from your own server (closed network, performance), copy them keeping their
layout, and give their address with ELEVATIONPROFILE_COPERNICUS_URL, where {name} is
the name of the tile, e.g.:
ELEVATIONPROFILE_COPERNICUS_URL=https://mirror.example.org/copernicus/{name}/{name}.tif