[OWSLib-users] Error using basemap

MUSSIN MAURO M.MUSSIN at arpalombardia.it
Wed Oct 10 04:58:58 PDT 2018


Anybody has an idea about this error?
##wms image exxample
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt

map = Basemap(llcrnrlon=8.35,llcrnrlat=41.225,urcrnrlon=10.01,urcrnrlat=43.108,
              projection='cyl', epsg=4326)

#wms_server = "http://www.ga.gov.au/gis/services/topography/Australian_Topography/MapServer/WMSServer"
#wms_server = "http://wms.geosignal.fr/metropole?"
wms_server='http://www.cartografia.servizirl.it/arcgis/services/wms/DTM5_RL_wms/MapServer/WMSServer'
map.wmsimage(wms_server, layers=["DTM_5X5"], verbose=True)
plt.show()
File "<ipython-input-254-073ec54e0a13>", line 10, in <module>
    map.wmsimage(wms_server, layers=["DTM_5X5"], verbose=True)

  File "C:\Users\mmussin\AppData\Local\Continuum\anaconda3\envs\Basemap\lib\site-packages\mpl_toolkits\basemap\__init__.py", line 4358, in wmsimage
    return self.imshow(imread(io.BytesIO(urllib2.urlopen(img.url).read()),

AttributeError: 'ResponseWrapper' object has no attribute 'url'

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/a328aa2f/attachment.html>


More information about the OWSLib-users mailing list