[OWSLib-users] WMS: error getting layers whith blanks in layer name
MUSSIN MAURO
M.MUSSIN at arpalombardia.it
Wed Oct 10 00:42:40 PDT 2018
This works:
from owslib.wms import WebMapService
wms=WebMapService('http://www.cartografia.servizirl.it/arcgis/services/wms/DTM5_RL_wms/MapServer/WMSServer')
img=wms.getmap(layers=["Isoipse"],styles=['default'],srs='EPSG:4326',bbox=(8.48,44.65,11.50,46.64),size=(300,300),format='image/png')
nessun problema
This does not:
from owslib.wms import WebMapService
wms=WebMapService('http://www.cartografia.servizirl.it/arcgis/services/wms/DTM5_RL_wms/MapServer/WMSServer')
img=wms.getmap(layers=["DTM 5X5"],styles=['default'],srs='EPSG:4326',bbox=(8.48,44.65,11.50,46.64),size=(300,300),format='image/png')
ServiceException: Parameter 'layers' contains unacceptable layer names.
I've tried to put the %20 instead of blank or \s but nothing works.
Somewhere I've read that this is a known bug: any info about fixing?
In folium everithing works fine (but the HTML doc is too heavy for my needs so I have to work with basemap and owslib)
Any help appreciated.
Mauro Mussin
Gestione reti idro-meteo
U.O. Servizio meteorologico e rete idro-meteo regionale
via Rosellini 17 - Milano
0269666425 - VOIP 69425
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/owslib-users/attachments/20181010/c02197d9/attachment.html>
More information about the OWSLib-users
mailing list