On Wed, Oct 2, 2013 at 6:10 PM, Enzo Ciarmoli <[email protected]> wrote:

> **
> QgsRasterLayer constructor has changed, now it accept four arguments, the
> first is the uri string.
>
> To construct the uri string you must know what layers you want.
>
> You could try this:
>
> desired_layer = 'abcdefg'
> uri = 'crs=EPSG:25832&featureCount=10&format=image/png&layers=' +
> desired_layer + '&styles=&url=http://testsrv/mapaccel?map=ciao.map'
> rlayer = self.iface.addRasterLayer(uri, 'test', 'wms')
>
>
>
> Hope this helps!
>
>
>
> Enzo
>
>
>

This works! Thank you in advance :-)
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to