[Qgis-user] How get the ID of active layer in python
Anita Graser
anitagraser at gmx.at
Tue Dec 31 15:30:57 PST 2013
Hi Andrea,
Am 31.12.2013, 23:43 Uhr, schrieb Andrea Peri <aperi2007 at gmail.com>:
> Traceback (most recent call last):
> File "<input>", line 1, in <module>
> AttributeError: 'QgsVectorLayer' object has no attribute 'getLayerID'
>
> I'm start to learn the python in qgis.
> Is there another choice for get the ID of active layer ?
Guess the function has been renamed to id()
http://qgis.org/api/classQgsMapLayer.html#a710f27dec806d3bcd5ae14701c2e6fd7
Happy new year!
Anita
___________________________________________________________
anitagraser.com
More information about the Qgis-user
mailing list