Closed qgib closed 5 years ago
Author Name: Sandro Santilli (@strk)
Author Name: Nyall Dawson (@nyalldawson)
The issue is that your layer URI isn't complete. Try using:
wms_uri = 'crs=EPSG:3857&format=image/jpeg&layers=1&layers=2&styles=default&styles=default&url=http://maps.rosreestr.ru/arcgis/services/Cadastre/CadastreWMS/MapServer/WMSServer?format%3Dimage/png%26layers%3D1,2%26styles%3D%26crs%3DEPSG:3857'
layer = QgsRasterLayer(wms_uri, 'Test WMS', 'wms')
Author Name: Nyall Dawson (@nyalldawson)
Author Name: Giovanni Manghi (@gioman)
Author Name: Jürgen Fischer (@jef-n)
closing for the lack of feedback
Author Name: Evgeniy Nikulin (Evgeniy Nikulin) Original Redmine Issue: 11885 Affected QGIS version: 2.6.0 Redmine category:web_services_clients/wms
I try to add wms layer to the map:
If I use the GUI, then everything is fine. But when I try to add throw Python console, the qgis crashes.
My "code":https://gist.github.com/yellow-sky/e2b4ff752c49aef887e0 :
If the URL contains only one sublayer - it's work. Change url to:
and oops...