GeoEra-GIP / Project-Support-WP8

Science Project Data provider support
https://geoera-gip.github.io/support/
7 stars 2 forks source link

WFS layer doesn't work on QGIS #618

Open nmtoken opened 2 years ago

nmtoken commented 2 years ago

I note on GIS stack exchange the following issue:

WFS layer doesn't work on QGIS

The issue is that

I am using QGIS 3.16.16, and I want to "Add WFS layer". I select Layer > Add Layer > Add WFS Layer, and then I insert layer's name, and the following URL: https://data.geus.dk/egdi/wfs/?whoami=youremail&typenames=egdi_mineraloccurr_critical_raw_materials.

Moreover, I changed the whoami=youremail, with the first part of my email. Then I select "Connect", but I receive the following error: Download of capabilities failed: Error transferring https://data.geus.dk/egdi/wfs/?myemail&SERVICE=WFS&REQUEST=GetCapabilities&ACCEPTVERSIONS=2.0.0,1.1.0,1.0.0 - server replied:.

Is it possible to explain to me why this happens?

Which URL should be used to allow QGIS to access the service?

Note QGIS does a GetCapabilities request first to get the featuretypes list and URLs to send requests to, then does a DescribeFeatureType to get further information, before doing any GetFeature request.

mh-geus-dk commented 1 year ago

Hi, You are setting up the url wrong. It should be like this: https://data.geus.dk/egdi/wfs/?whoami=aa@bb.cc&SERVICE=WFS&REQUEST=GetCapabilities&ACCEPTVERSIONS=2.0.0,1.1.0,1.0.0 Where aa@bb.cc should be replaced by your email. /Martin

nmtoken commented 1 year ago

I note a similar question again: https://gis.stackexchange.com/questions/464471/connecting-to-egdi-wfs-in-qgis-3-28-fails

nmtoken commented 1 year ago

@mh-geus-dk the WFS URL https://data.geus.dk/egdi/wfs/?whoami=aa@bb.cc&SERVICE=WFS&REQUEST=GetCapabilities&ACCEPTVERSIONS=2.0.0,1.1.0,1.0.0 is no longer working

looks like an error in a map file loadLayer(): Unknown identifier. Parsing error near (CCLASS):(line 13)

nmtoken commented 1 year ago

I see you posted an answer on GIS StackExchange, but it was deleted for some reason. The screenshot you gave has a WMS connection shown but the issue was for the WFS connection; does the WFS connection also work for you, it wasn't working for me when I tried it.