<div dir="ltr"><div><div><div>It work.<br><br></div>Thx Anita, <br><br></div>Happy you too.<br><br></div>Andrea<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/1 Anita Graser <span dir="ltr"><<a href="mailto:anitagraser@gmx.at" target="_blank">anitagraser@gmx.at</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Andrea,<br>
<br>
Am 31.12.2013, 23:43 Uhr, schrieb Andrea Peri <<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>>:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Traceback (most recent call last):<br>
  File "<input>", line 1, in <module><br>
AttributeError: 'QgsVectorLayer' object has no attribute 'getLayerID'<br>
<br>
I'm start to learn the python in qgis.<br>
Is there another choice for get the ID of active layer ?<br>
</blockquote>
<br></div>
Guess the function has been renamed to id()<br>
<br>
<a href="http://qgis.org/api/classQgsMapLayer.html#a710f27dec806d3bcd5ae14701c2e6fd7" target="_blank">http://qgis.org/api/<u></u>classQgsMapLayer.html#<u></u>a710f27dec806d3bcd5ae14701c2e6<u></u>fd7</a><br>
<br>
Happy new year!<br>
<br>
Anita<br>
<br>
______________________________<u></u>_____________________________<br>
<a href="http://anitagraser.com" target="_blank">anitagraser.com</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty אטלעש<br>-----------------<br>
</div>