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'
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
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
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