WMS – Selecting Specific Layers Using URL Link

arcgis-onlinewms

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.

Best Answer

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

Related Question