1

I have a WMS from the Scottish Natural heritage which contains multiple layers:

https://cagmap.snh.gov.uk/arcgis/services/snh_habitats_and_species/MapServer/WMSServer?request=GetCapabilities&service=WMS

I am wanting to put this as a service into ArcGIS Online, but I only want one layer imported from the service. The layer is “Special Areas of Conservation” I understand that you can add GetRequests into the above link to select the layers, but I cannot get it to work.

I have tried putting the WMS into QGIS, and I can see all the layers, but I cannot get the URL for just the one layer I need.

Can anyone help? I know its probably quite simple and its been frustrating me for a few hours.

  • Just add: &layers=layername to your URL. Do you use the exact layername out of the GetCapabilities-document? Often the name shown in the GUI is not the one used in the background. – Matte Jul 27 '18 at 11:48
  • Cascade it through another WMS – nmtoken Jul 27 '18 at 12:54
  • @matte it should be layers=layername&, the WMS specification tells us that the & closes the key=value pair – nmtoken Jul 27 '18 at 20:55
  • You are correct. I was simplifying it for copying it at the end. The last closing "&" can be left, which is the case in the given example. To add another parameter you have to add the "&" to close the "service=WMS" before you start the next one. – Matte Jul 28 '18 at 10:53
  • 1
    And again... You are correct :) . I was somehow thinking as if this was the GetMap request. Somewhere around 35°C you shouldn´t answer detailed questions. – Matte Jul 28 '18 at 15:01
0

I understand that you can add GetRequests into the above link to select the layers, but I cannot get it to work.

You can't add any more Get requests into that URL, the request is already an HTTP GET request and the WMS request type is GetCapabilities.

If you look at the XML response for that link you can see it is telling you (or the your client i.e. QGIS) that there are request types available (other than GetCapabilities) like GetMap and GetFeatureInfo.

So for QGIS you should give the URL:

https://cagmap.snh.gov.uk/arcgis/services/snh_habitats_and_species/MapServer/WMSServer?

and from that stem it will create the appropriate request like a GetMap request to give a map, and a GetFeatureInfo request to get the attribute value of the data in a map.

You say that:

I only want one layer imported from the service. The layer is “Special Areas of Conservation”

I can't actually see a layer of that name at all

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.