Error message when trying to access active layers with QGIS Python Console

Issue #655 resolved
Henrike Dierkes created an issue

While testing the workflow described in the documentation section “User Manual / QGIS Python Console” to access active layers, getting the following:

Code from EnMAP Box documentation:

import enmapbox
enmapbox.Qgis.activeData()

Error message:

Traceback (most recent call last):
  File "C:\Users\PC\miniconda3\envs\qgis_stable\lib\code.py", line 90, in runcode
    exec(code, self.locals)
  File "<input>", line 1, in <module>
AttributeError: type object 'Qgis' has no attribute 'activeDataset'

QGIS Version: 3.18.2

EnMAP Box: 3.7.20210417T222405.master

Comments (2)

  1. Andreas Janz

    We removed that functionality recently.

    @Fabian Thiel please remove the section from the docs.

  2. Log in to comment