Is QgsMapLayerRegistry
going to be availabe in PyQGIS with QGIS 3?
When I typed it into the QGIS python console (2.99), python seems to recognize it because it auto-completes qgis.core.QgsMapLayerRegistry
, but then gives an error that it's not there:
Traceback (most recent call last):
File "/usr/lib/python3.5/code.py", line 91, in runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
AttributeError: module 'qgis.core' has no attribute 'QgsMapLayerRegistry'
I tried this with two versions of QGIS 2.99 (one in 01/07 and on in 06/17). Both versions give the same error. import
doesn't work either:
>>>from qgis.core import QgsMapLayerRegistry
Traceback (most recent call last):
File "/usr/lib/python3.5/code.py", line 91, in runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
ImportError: cannot import name 'QgsMapLayerRegistry'
Is QgsMapLayerRegistry
removed in QGIS3?