Closed rsignell-usgs closed 6 years ago
Hi @rsignell-usgs ! GEBCO_08 Hillshade
gets sent to the WMS server as GEBCO_08+Hillshade
instead of GEBCO_08%20Hillshade
, unsure if the bug is with cartopy or owslib, but will dig some more!
Oh, https://github.com/mapserver/mapserver/issues/5232#issuecomment-180048058 implies this issue is a ESRI bug!
The issue code and description at ESRI was
[#NIM104588 For layer names having spaces, the GetMap request URL for ArcGIS WMS services requires %20 to be used in place of spaces instead of a '+' sign.]
If there is a bug with the implementation, I think it exists in owslib, where there is an urlencoding at https://github.com/geopython/OWSLib/blob/508f966ecaf212ed4a413d69279e944ecb6cac26/owslib/map/wms130.py#L302. cartopy is simply passing the layers through to owslib, and if possible I would want owslib to do the validation, not cartopy itself.
@rsignell-usgs - do you want to move the discussion over to owslib for visibility?
Closing this here as I don't think there is anything cartopy should do in this instance.
When I try to add the Gebco hillshade bathmetry WMS layer thusly:
I'm getting:
Is there perhaps some problem with the underscore or space in the layer name?
FWIW, this WMS endpoint works okay with other WMS clients, including Folium:
Screen grab: