0

This question is related to the qwc-docker project.

I am trying to make my QGS project layers editable from within the qwc-map-viewer Demo. I've done all the steps listed here and re-checked everything several times.

In addition to those steps I also enabled WFS for the layers in the QGS project.

The postgres user used in the pg_service.conf and qwc-docker/pg_service-write.conf has full rw access to the PostgreSQL database.

However in the end when I run the config generator from the Admin GUI to update the service configuration it doesn't create anything for the "editConfig" property in the volumes/config/default/mapViewerConfig.json file. It remains editConfig: {}

In the Map Viewer when I click the Editing button I simply get the message "No editable layers".

In the docker logs I have no warning or error that would give me some hints as to why I can't make my layers editable.

I don't know what to check anymore, I'm hoping someone already struggled with this and can give me some clues as to how I could debug this.

The host is a Debian 12.7 server, docker 27.2.0, the qwc docker containers are the same versions as those listed in the default docker-compose.yml file in qwc-docker.

My QGIS Desktop project version is 3.38.1.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Sep 17, 2024 at 20:15

3 Answers 3

0

You need to create Resources and Permissions about the project and the layers you want to edit, as mentioned in the documentation (Quick start). Please check if it is the case.

For instance:

  • create resource Map for QGIS project "my_project"
  • create resource Data for layer "my_layer" which parent resource is Map "my_project" and check the box "Write"
  • create permission for resource Map "my_project" to public role (everyone is allowed to see the project, no need to log in)
  • create permission for resource Data "my_layer" to public role (everyone is allowed to edit the layer, no need to log in)
  • generate configuration and you should see some datasets resources in volumes/config/default/dataConfig.json (qwc-data-service) and editConfig in volumes/config/default/mapViewerConfig.json (qwc-map-viewer)
answered Sep 19, 2024 at 12:04
2
  • Yeah I had already done that, only exception I had used the admin role instead of public for both the Map and Data resource. I just tried with public and regenerated the config but no change unfortunately. No resource dataset in dataConfig.json and no editConfig in mapViewerConfig.json. Commented Sep 20, 2024 at 19:44
  • Please check that resources name match to the technical name of its resource (e.g. WMS layer name). You can check WMS layers name by requesting GetCapabilities Commented Sep 24, 2024 at 11:53
0

Changing the version of sourcepole/qwc-config-generator from latest-2025-lts (in my case v2025.10-lts) to v2024.7-lts addressed the issue. After that, when generating service configuration in the admin panel (qwc.example.com/qwc_admin/) such records have finally appeared:

INFO: Generating edit form for layer <layer_name> of project <project_name>
INFO: Wrote <project_name>_<layer_name>.ui

volumes/config/default/permissions.json and volumes/config/default/mapViewerConfig.json have been also changed.

To suppress warnings that appear due to poor version compatibility of other microservices (latest-2025-lts) with sourcepole/qwc-config-generator:v2024.7-lts, you can slightly modify volumes/config-in/default/tenantConfig.json as follows: Changes in volumes/config-in/default/tenantConfig.json

I had to change several versions before I found a working one. It seems that starting with sourcepole/qwc-config-generator:v2025.0-lts, some bug has appeared that directly affects the generation of JSON configurations using the qwc-config-service.

answered Mar 26 at 8:41
0

I had just the same issue. And it's now fixed in the latest-2025-lts. Just execute docker composer pull and you'll be OK.

qgis/qwc2 issue "Can't make a layer editable #397" https://github.com/qgis/qwc2/issues/397

answered Mar 30 at 11:37

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.