GeoServer/QGIS – WMS works but WFS doesn’t!

Marketing
Marketing
  • Updated

by David Crowther

QGIS WMS 1.png

Question:

In QGIS when I connect to my GeoServer Service, Web Map Services (WMS) are connecting but Web Feature Services (WFS) are not – why is this?

Answer:

If you are trying to connect QGIS to your WFS Service and you get this message…..

QGIS WMS 2.jpg

… the issue could be the version of GeoServer that you are using, and possibly if you are trying to use a newly created GeoServer ROLE.

For example, in GeoServer 2.24.1 there is an additional setting that you need to update to allow new ROLES to utilise the WFS service.

To resolve this in GeoServer choose the Security > Services menu…

QGIS WMS 3.jpg

… and the Service access rules list opens.

Check the wfs.* rule…. because it is likely that it won’t have any of your new Roles added.

QGIS WMS 4.jpg

To update the settings, choose wfs.* from the table… and the Edit existing service access rule page opens.

QGIS WMS 5.jpg

Update the service access rule, to add any new ROLES that you which to allow WFS connectivity.

Once added, now QGIS should be able to connect to your GeoServer WFS instance, listing the layers available to that Role.

QGIS WMS 6.jpg

And you will be able to add WFS layers into the map.

QGIS WMS 7.jpg

Was this article helpful?

1 out of 1 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.