[Qgis-user] How get the ID of active layer in python

Andrea Peri aperi2007 at gmail.com
Tue Dec 31 15:37:59 PST 2013


It work.

Thx Anita,

Happy you too.

Andrea



2014/1/1 Anita Graser <anitagraser at gmx.at>

> 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#a710f27dec806d3bcd5ae14701c2e6
> fd7
>
> Happy new year!
>
> Anita
>
> ___________________________________________________________
> anitagraser.com
>



-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20140101/b91b48aa/attachment.html>


More information about the Qgis-user mailing list