<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 2, 2013 at 6:10 PM, Enzo Ciarmoli <span dir="ltr"><<a href="mailto:enzo.ciarmoli@csi.it" target="_blank">enzo.ciarmoli@csi.it</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
    
 <div><div>QgsRasterLayer constructor has changed, now it accept four arguments, the first is the uri string. 
   <p style="margin:0">To construct the uri string you must know what layers you want.</p> 
   <br style="margin:0"> 
   <p style="margin:0">You could try this: <br><br>desired_layer = 'abcdefg'<br>uri = 'crs=EPSG:25832&featureCount=10&format=image/png&layers=' + desired_layer + '&styles=&url=<a href="http://testsrv/mapaccel?map=ciao.map" target="_blank">http://testsrv/mapaccel?map=ciao.map</a>'<br>

rlayer = self.iface.addRasterLayer(uri, 'test', 'wms')</p> 
   <p style="margin:0"> </p> 
   <p style="margin:0">Hope this helps!</p><span class="HOEnZb"><font color="#888888"><p style="margin:0"> </p> 
   <p style="margin:0">Enzo  
   </p></font></span><span class="HOEnZb"><font color="#888888"><p style="margin:0"> </p> 
  </font></span></div>
 
</div></blockquote></div><br></div><div class="gmail_extra">This works! Thank you in advance :-)<br>
</div></div>