To everyone on QGIS mailinglists
A happy New Year to all of you.
Looking forward to work together in 2014.
Regards


Lene Fischer
Associate Professor

Department of Geosciences and Natural Resource Management
University of Copenhagen

MOB +45 40115084
[email protected]<mailto:[email protected]>


[SCIENCE_bomaerke_UK]


Fra: [email protected] 
[mailto:[email protected]] På vegne af Andrea Peri
Sendt: 1. januar 2014 00:38
Til: Anita Graser
Cc: qgis-user
Emne: Re: [Qgis-user] How get the ID of active layer in python

It work.
Thx Anita,
Happy you too.
Andrea

2014/1/1 Anita Graser <[email protected]<mailto:[email protected]>>
Hi Andrea,

Am 31.12.2013, 23:43 Uhr, schrieb Andrea Peri 
<[email protected]<mailto:[email protected]>>:

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<http://anitagraser.com>



--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------

<<inline: image001.jpg>>

_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to