3liz / lizmap-wps-web-client-module

Lizmap module for WPS Client support
Mozilla Public License 2.0
11 stars 9 forks source link
javascript lizmap php qgis qgis-processing qgis-server wps

Lizmap WPS Web Client

🔤 Lint 🚀 Release Packagist

Lizmap WPS Web Client is a Lizmap module to add a WPS panel into Lizmap Web Client.

This is an example showing the QGIS Processing Buffer algorithm, exposed as a WPS algorithm within Lizmap Web Client:

Screenshot

Screenshot

Demo gif

It's also providing another panel showing you the results which have been executed on the Lizmap instance.

Installation

Since version 0.1.1, it is recommended to install the module with Composer, the package manager for PHP. If you can't use it or if you are using Lizmap 3.3 or lower, use the manual way to install the module (jump to the corresponding section below)

Automatic installation with Composer and lizmap 3.4 or higher

cp -n lizmap/my-packages/composer.json.dist lizmap/my-packages/composer.json
composer require --working-dir=lizmap/my-packages "lizmap/lizmap-wps-web-client"
php lizmap/install/configurator.php wps
php lizmap/install/installer.php
./lizmap/install/clean_vartmp.sh
./lizmap/install/set_rights.sh

Go to the "Configuration" section.

Manual installation into lizmap 3.3 or 3.4 without Composer

wps.access=2
php lizmap/install/installer.php
./lizmap/install/clean_vartmp.sh
./lizmap/install/set_rights.sh

configuration

Add a section [wps] in your localconfig.ini.php and add the variables:

[wps]
wps_root_url=http://wps:8080
wps_rootDirectories=/projects/wps

redis_host=localhost
redis_port=6379
redis_key_prefix=lzmwps
redis_db=1
ows_url=http://map:8080
restrict_to_config_projects=off
restrict_to_authenticated_users=off
enable_job_realm=off
admin_job_realm=

The WPS configuration:

The redis configuration for saving process status: uuid, INPUTS, OUTPUTS.

The OWS proxy configuration:

The availability of WPS algorithms in the Lizmap Web Client web maps