From 2471efeca9dfe5bb3cf3e3bb8dcdc7a3332eac80 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]" When using Place the projects whose layers you want to split below In the topolevel By default, symbol categories of a classified layer won't be exposed via WMS and hence in QWC2. To expose symbol categories as separate layers via WMS, you can use the split_categorized QGIS Server plugin. To configure the plugin in For all layers that you want to split, create the variable Generate the themes configuration. The Generate the themes configuration. Note: Make sure you are using Note: Using the QGZ project file format If using
qwc-docker
, set QGIS_PROJECT_SUFFIX=qgz
in the qwc-qgis-server
environment in docker-compose.yml
.
Split categorized layers¶
-qwc-docker
, the qwc-config-generator
has the ability to split a layer that has been classified with QGIS into multiple layers and move them into a new group (the group name will be the original layer name). To activate this functionality, follow these steps:
-
-qwc-docker/volumes/config-in/<tenant>/qgis_projects
.config
in qwc-docker/volumes/config-in/<tenant>/tenantConfig.json
, ensure qgis_projects_gen_base_dir
is set and valid, and set "split_categorized_layers": true
.qwc-docker
, proceed as follows:
+
+volumes/qgis-server-plugins/split_categorized
and configure the qwc-qgis-server
container as follows:
+ qwc-qgis-server:
+ image: docker.io/sourcepole/qwc-qgis-server:<TAG>
+ volumes:
+ - ./volumes/qgis-server-plugins/split_categorized:/usr/share/qgis/python/plugins/split_categorized:ro
+ ...
+
convert_categorized_layer
and set it to true
.qwc-config-generator
will process the projects and write the modified projects to qgis_projects_gen_base_dir
.qwc-config-generator:v<version>
and not qwc-config-generator:v<version>-noqgis
.ELSE
symbol rules are currently unsupported, respectively will display the entire layer contents.
Reference to JSON schema of this config
"admin-gui"
DB connection URL
Config generator URL
Show TOTP fields for two factor authentication
Additional user fields
No Additional ItemsList of RegExes for whitelisted URLs
No Additional ItemsTimeout in seconds for proxy requests
Title displayed in Admin Gui home page
Subtitle displayed in Admin Gui home page
Solr Service base URL for collection
Solr DataImportHandler for tenant
Path to source DataImportHandler config file for tenant
Path to Solr configs
Wait time in seconds for checks during Solr index update
Max number of retries for checks during Solr index update
List of plugins to load
No Additional ItemsThe path to the input configs. Required for 'themes' and 'config_editor' plugin.
The path to QWC2 files. Required for 'themes' and 'alkis' plugins.
The path to the QGIS projects. Required for 'themes' plugin.
The path to the html info templates. Required for 'themes' plugin.
The OGC service URL path prefix, i.e. /ows. Required for 'themes' plugin.
The default Qgis server URL. Required for 'themes' plugin.
Reference to JSON schema of this config
"admin-gui"
DB connection URL
Config generator URL
Show TOTP fields for two factor authentication
Additional user fields
No Additional ItemsList of RegExes for whitelisted URLs
No Additional ItemsTimeout in seconds for proxy requests
Title displayed in Admin Gui home page
Subtitle displayed in Admin Gui home page
Solr Service base URL for collection
Solr DataImportHandler for tenant
Path to source DataImportHandler config file for tenant
Path to Solr configs
Wait time in seconds for checks during Solr index update
Max number of retries for checks during Solr index update
List of plugins to load
No Additional ItemsThe path to the input configs. Required for 'themes' and 'config_editor' plugin.
The path to QWC2 files. Required for 'themes' and 'alkis' plugins.
The path to the QGIS projects. Required for 'themes' plugin.
The path to the html info templates. Required for 'themes' plugin.
The OGC service URL path prefix, i.e. /ows. Required for 'themes' plugin.
The default Qgis server URL. Required for 'themes' plugin.