You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
QgsMapLayerRegistry.instance()
Traceback (most recent call last):
File "C:\OSGEO4~1\apps\Python36\lib\code.py", line 91, in runcode
exec(code, self.locals)
File "", line 1, in
NameError: name 'QgsMapLayerRegistry' is not defined
Author Name: Richard Duivenvoorde (@rduivenvoorde)
Original Redmine Issue: 16189
Affected QGIS version: master
Redmine category:python_plugins
I wrote a small python script to load a bunch of WMTS layers:
http://www.qgis.nl/2017/02/01/topotijdreis-kaartlagen-in-qgis/
This is working in 2.x but in 3.x it fails with:
QgsMapLayerRegistry.instance()
Traceback (most recent call last):
File "C:\OSGEO4~1\apps\Python36\lib\code.py", line 91, in runcode
exec(code, self.locals)
File "", line 1, in
NameError: name 'QgsMapLayerRegistry' is not defined
But it should still be there isn't it?
https://qgis.org/api/classQgsMapLayerRegistry.html
The text was updated successfully, but these errors were encountered: