Loading geoserver WMS raster layer in QGIS python console

المشرف العام

Administrator
طاقم الإدارة
I am using the following snippet to load a raster layer deployed under wms service using geoserver, in qgis python console. I am getting False output. Any idea?

registry = QgsMapLayerRegistry.instance() urlWithParams = "service=WMS&version=1.1.0&request=GetMap&layers=sf:sfdem&styles=&bbox=589980.0,4913700.0,609000.0,4928010.0&width=512&height=385&srs=EPSG:26713&format=image/png&url=http://maps.itu.edu.tr:8082/geoserver/sf/wms?" rlayer = QgsRasterLayer (urlWithParams , "my_title", "wms") rlayer.isValid() I have tired this, this and good enough web hunt but can't understand the issue. Is there any way to generate error code or info while working on qgis console?



أكثر...
 
أعلى