<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.StileMessaggioDiPostaElettronica17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="IT" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Anybody has an idea about this error?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">##wms image exxample<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">from mpl_toolkits.basemap import Basemap<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">import matplotlib.pyplot as plt<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">map = Basemap(llcrnrlon=8.35,llcrnrlat=41.225,urcrnrlon=10.01,urcrnrlat=43.108,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> projection='cyl', epsg=4326)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#wms_server = "http://www.ga.gov.au/gis/services/topography/Australian_Topography/MapServer/WMSServer"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#wms_server = "http://wms.geosignal.fr/metropole?"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">wms_server='http://www.cartografia.servizirl.it/arcgis/services/wms/DTM5_RL_wms/MapServer/WMSServer'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">map.wmsimage(wms_server, layers=["DTM_5X5"], verbose=True)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">plt.show()<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">File "<ipython-input-254-073ec54e0a13>", line 10, in <module><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> map.wmsimage(wms_server, layers=["DTM_5X5"], verbose=True)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> File "C:\Users\mmussin\AppData\Local\Continuum\anaconda3\envs\Basemap\lib\site-packages\mpl_toolkits\basemap\__init__.py", line 4358, in wmsimage<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> return self.imshow(imread(io.BytesIO(urllib2.urlopen(img.url).read()),<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">AttributeError: 'ResponseWrapper' object has no attribute 'url'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><i><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black;mso-fareast-language:IT">Mauro Mussin<br>
Gestione reti idro-meteo<br>
U.O. Servizio meteorologico e rete idro-meteo regionale<br>
via Rosellini 17 - Milano<br>
0269666425 - VOIP 69425<o:p></o:p></span></i></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>