Installation
Requirements
QGIS Server 3.34 or later, QGIS 4 (Qt6) included. The same plugin works in both versions.
No library to install: the plugin uses what QGIS provides (GDAL, NumPy).
For the Copernicus source, QGIS Server must be able to reach the Internet.
From the official plugin repository
The plugin is published on plugins.qgis.org. On the server, install it with qgis-plugin-manager, in the plugin folder of QGIS Server:
cd /path/to/the/qgis-server/plugins
qgis-plugin-manager init
qgis-plugin-manager update
qgis-plugin-manager install "Elevation Profile Server"
The plugin manager of QGIS Desktop is of no use here: it installs QGIS Desktop plugins, not server ones.
From a ZIP file
Download the ZIP file of the latest version (Releases page of the GitHub repository, or plugins.qgis.org).
Unzip it into the plugin folder of QGIS Server: you get an
elevationProfileServerfolder.
The folder must be named exactly elevationProfileServer. Keep only one copy: two copies of the
plugin would declare the PROFILE service twice.
Plugin folder
It is the folder set by the QGIS_PLUGINPATH environment variable of QGIS Server, or by
the py-qgis-server configuration. Usual examples:
/srv/qgis/plugins;/usr/share/qgis/python/plugins(installation from packages).
Restart and check
Restart QGIS Server (or py-qgis-server), then check its logs. They must show:
Init server version "1.0.0"
Then test the service, with a project having an elevation layer:
curl "http://localhost/qgis/?MAP=/srv/projects/site.qgs&SERVICE=PROFILE&REQUEST=GetElevationLayers"
The answer is the list of the elevation layers, in JSON.
Updating
qgis-plugin-manager upgrade, or replace the elevationProfileServer folder with the one of
the new version, then restart QGIS Server.