Re: [Qgis-developer] Adding a WMS layer in QGIS 2.0 (python)

2013-10-03 Thread Luca Manganelli
On Wed, Oct 2, 2013 at 6:10 PM, Enzo Ciarmoli enzo.ciarm...@csi.it 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'

Re: [Qgis-developer] Adding a WMS layer in QGIS 2.0 (python)

2013-10-02 Thread Enzo Ciarmoli
From: Luca Manganelli luc...@gmail.com To: qgis-developer qgis-developer@lists.osgeo.org Subject: [Qgis-developer] Adding a WMS layer in QGIS 2.0 (python) Hi, the QgsRasterLayer costructor has changed. If I try this: rlayer = QgsRasterLayer('http://testsrv/mapaccel?map=ciao.mapcrs=EPSG

[Qgis-developer] Adding a WMS layer in QGIS 2.0 (python)

2013-10-01 Thread Luca Manganelli
Hi, the QgsRasterLayer costructor has changed. If I try this: rlayer = QgsRasterLayer(' http://testsrv/mapaccel?map=ciao.mapcrs=EPSG:25832format=image/png', 'test', 'wms') QgsMapLayerRegistry.instance().addMapLayer(rlayer) self.iface.mapCanvas().refresh() the wms raster layer is never added

Re: [Qgis-developer] Adding a WMS layer in QGIS 2.0 (python)

2013-10-01 Thread Luca Manganelli
On Tue, Oct 1, 2013 at 4:10 PM, Luca Manganelli luc...@gmail.com wrote: Hi, [...] using the QgisInterface.addRasterLayer popus a dialog box with this error: GDAL provider: Cannot open GDAL dataset http://testsrv/mapaccel?map=test.map: Failed to create temporary file:/tmp/test.map