Installation
Requirements
Lizmap Web Client 3.9 or 3.10.
QGIS Server 3.34 or later, QGIS 4 included, with:
the Elevation Profile Server plugin 1.0.0 or later, which computes the profiles;
the
lizmap_serverplugin, as for any Lizmap installation: it applies the layer rights.
The Lizmap dataviz files (
assets/js/dataviz/plotly-custom.min.js, shipped with Lizmap): the graph uses the Plotly library of Lizmap.
Note
This module is not needed with the fork Seboon/lizmap-web-client, which already has the same tool in the Measure menu.
1. The QGIS Server plugin
Copy the elevationProfile folder of the plugin into the plugin folder of QGIS Server, or
install it with qgis-plugin-manager:
qgis-plugin-manager install elevationProfile
Restart QGIS Server (or py-qgis-server). Its logs must show Init server version "1.0.0".
2. The module in Lizmap
Manual installation
Download the ZIP file of the latest version of the module, and copy its
elevationProfilefolder intolizmap/lizmap-modules/.From the Lizmap folder:
php lizmap/install/configurator.php elevationProfile php lizmap/install/installer.php ./lizmap/install/clean_vartmp.sh sudo ./lizmap/install/set_rights.sh www-data www-data
With Composer
cp -n lizmap/my-packages/composer.json.dist lizmap/my-packages/composer.json
composer config --working-dir=lizmap/my-packages repositories.elevationprofile vcs https://github.com/Seboon/lizmap-elevationprofile-module
composer require --working-dir=lizmap/my-packages "seboon/lizmap-elevationprofile-module"
then the four commands of the manual installation.
What the installation does
The configurator:
enables the module in
lizmap/var/config/localconfig.ini.php;declares the URL
index.php/elevationprofile/serviceinlizmap/var/config/localurls.xml;copies the JavaScript, the style sheet and the icons into
lizmap/www/elevationprofile/.
Nothing needs to be changed in nginx or Apache.
Checking the installation
Logged in to Lizmap, open in the browser, with your repository and project:
https://your-server/lizmap/index.php/elevationprofile/service?repository=myrepo&project=myproject&REQUEST=GetElevationLayers
The answer is the list of the elevation layers of the project, in JSON. Then open the map: the Elevation profile button is in the left menu.
Updating
Replace the lizmap/lizmap-modules/elevationProfile folder with the one of the new version
(or composer update --working-dir=lizmap/my-packages), then run the four installation
commands again.
Uninstalling
Delete lizmap/lizmap-modules/elevationProfile and lizmap/www/elevationprofile, remove
the elevationProfile line from localconfig.ini.php and localurls.xml, then run
./lizmap/install/clean_vartmp.sh.
Language
The tool follows the language of Lizmap. Its texts are translated into the Lizmap languages; in a language without a translation, they are shown in English.