Most of my attempts to connect to various WFS services fails with different error messages.
Here is an example from open data stockholm where I actually was able to create the connection:
openstreetgs.stockholm.se/.../wfs
(I have removed the API-key. Contact me if you need to test)
When trying to query I get the following error:
Using the url without specifying typename
https://openstreetgs.stockholm.se/geoservice/api/823cc3a5-2c0c-4aaf-8340-807615e27f62/wfs?
fails with the following:
Here is another example:
https://geodata.scb.se/geoserver/stat/DeSO.2018/ows
Here I can also connect but nothing is displayed.
Trying the same url:s in QGIS works fine.
Testfile:
Sverige_Sweref1800.dgn
Regards,
Krister
Hi Krister,
Thank you for bringing this to our attention.
I tried to import the first link, but it seems that login credentials are required.
I was able to work with the second one (see below):
The third also works well on my side:
The error message seems to indicate an invalid OGS filter. Is it something that you are working with?
Hi,
I was not trying to create WMS connection. I was using the new Feature Service Connection.
It works for WMS but I cannot get it to work for WFS.
Owner consultant at Surell Consulting AB
Thanks for your clarification. I was able to replicate the issue. Please raise a new Case including as much information as possible.We will investigate this issue further to find a possible solution/explanation. Please also post Case # when done.
Zeno
Hello Krister Surell
I may have a solution.I took the API key from your other URL.
This one should do the trick for you:
Hope this helps.
https://openstreetgs.stockholm.se/geoservice/api/823cc3a5-2c0c-4aaf-8340-807615e27f62/wfs?service=WFS&version=1.0.0&request=GetFeature&typename=od_gis:Cykelparkering_Punkt
And for the "DeSO.2018":
https://geodata.scb.se/geoserver/stat/DeSO.2018/ows?service=WFS&version=1.0.0&request=GetCapabilities
Most of the times when you're using the new feature service, you will have to be very specific in "Server URL"... The thing which seems to be working for me is to make sure the following is in the URL:
Which service (service=WFS)
The version (version=1.0.0) - if you're not quite sure about the version i tend to try 1.0.0 - 1.1.0 or 2.0.0
and request (request=getCapabilities) or (request=GetFeature&typename=od_gis:Cykelparkering_Punkt)
Answer Verified By: Krister Surell
Thanks! It did work just fine.
I hope you will make this more flexible in regards of what url it will accept.
Both examples are the urls published by the service providers for use with their services and also, as I explained, QGIS have no problem with almost anything you through at it.