4

I am unable to edit WFS layers in QGIS. I have set up a service access rule in Geoserver to allow users associated with role "staff_edit" to edit WFS layers. I followed this tutorial to ensure that I did not miss a critical step. I am currently using QGIS 2.16 and Geoserver 2.9.0.

I have the following service rule in place:

wfs.*   GROUP_ADMIN,ADMIN,staff_edit

No other rules have been specified (yet). I am able to connect to the server and add WFS and WMS layers in QGIS, but I am unable to edit WFS layers. The following have been verified:

  • WFS service level set to "Complete"
  • "staff_edit" role given WRITE access mode
  • The data come from a PostGIS data store and credentials grant editing privileges (currently using admin credentials).
  • tried uploading a vector dataset that was not in PostGIS, and same inability to edit.

How can I allow a specified role to edit WFS layers in QGIS?

UPDATE: The problem only exists on QGIS 2.16.3. Editing works on QGIS 2.14.

  • Check the GeoServer logs, do you get any error when trying to commit a change? What about in QGIS own logs? – Andrea Aime Oct 18 '16 at 16:55
  • No errors in either log when loading WFS layers in version 1.1.0 or 2.0.0. Also note update above. This problem only exists in QGIS version 2.16. – Cliff Oct 18 '16 at 17:07
  • 1
    > In the "Modify WFS Connection" dialog, leaving Version as > "auto-detect", "1.1.0", or "2.0.0" will not allow WFS editing. Only by > selecting 1.0.0 will the user be able to edit a WFS layer in QGIS > 2.16. Thanks for the tip! Still the case with Qgis 2.18, thx for pointing to this small detail...! – RobertodOrazio Nov 24 '16 at 14:59
5

I had the same problem, and "solved" it by choosing wfs version 1.0.0 in QGIS.

It (1.0.0) seems to not be the default WFS version in QGIS 2.16 but it is in older versions.

  • This works, though I believe the moderators would like to see more detailed answers in the future. In the "Modify WMS Connection" dialog, leaving Version as "auto-detect", "1.1.0", or "2.0.0" will not allow WFS editing. Only by selecting 1.0.0 will the user be able to edit a WFS layer in QGIS 2.16. Thanks for the tip! – Cliff Oct 24 '16 at 15:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.