Skip to main content
Question

Why do I get 404 error when reading WMS?


I have a WMS that I can open in e.g. QGIS. Both the FeatureReader and the OGC WMS reader can show me the different selectable layers in "Properties". But when I start the translation, I get a 404 error saying it cannot be found. This is the WMS I'm trying to read: https://geodata.naturvardsverket.se/planeringsunderlag_o_strategier/wms?layers=Sannolikt_och_potentiell_kontinuitetsskog

 

Why and what can I do about it?

2 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+35

Hmm indeed weird - I thiiiiink (not 100%) that their GetCapabilities is wrong. FME gets redirected to a different url which is defined in there as the GetMap request url. If you look in your FME log with just a basic reader you end up with a GetMap request URL which looks like:

 

http://geodata.naturvardsverket.se/arcgis/services/planeringsunderlag_o_strategier/MapServer/WmsServer?....

 

But the URL you've been provided is:

https://geodata.naturvardsverket.se/planeringsunderlag_o_strategier/wms?

 

If you replace the URL back to the one you provided (in a browser) then you get a result:

 

imageMy guess is that the GetCapabilities document is wrong and needs to be fixed, but I'm not 100%. Likely QGIS is not using the URL provided in the GetCapabilites document but the one provided.

 

I suspect that the people who set up the service didn't spot the issue because it's an internal URL and it probably works for them.

 

I'm not sure if there is a workaround for this.


  • Author
  • June 14, 2023

Thanks! That answer taught me a bit or two about WMS :) Hm, for now I might end up downloading their raster file instead then.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings