<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-11-03 12:09 GMT+01:00 Andrea Peri <span dir="ltr"><<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I will try.<br>
please send me some instructions on how to do.<br></blockquote><div><br><br></div><div>0. you need a github account<br></div><div>1. navigate through the cookbook and find a page that you want to edit, for example:<br></div><div><a href="http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/loadlayer.html">http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/loadlayer.html</a><br></div><div>2. click the 'fix me' link in the footer<br></div><div>3. edit and commit, will create a pull request<br><br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class=""><font color="#888888">
A.<br>
</font></span><div class=""><div class="h5"><br>
<br>
2015-11-03 10:28 GMT+01:00 Alessandro Pasotti <<a href="mailto:apasotti@gmail.com">apasotti@gmail.com</a>>:<br>
><br>
> You're welcome!<br>
><br>
> If it's not yet in the python cookbook, you might consider adding a recipe<br>
> there.<br>
><br>
><br>
> 2015-11-03 10:23 GMT+01:00 Andrea Peri <<a href="mailto:aperi2007@gmail.com">aperi2007@gmail.com</a>>:<br>
>><br>
>> Hi Alessandro,<br>
>><br>
>> your hint is working.<br>
>> Effectivelly I was not thinking that the title and abstract was<br>
>> directly accessible from individual getters on layer class.<br>
>><br>
>> Thx for help,<br>
>><br>
>> A.<br>
>><br>
>><br>
>><br>
>> 2015-11-03 9:17 GMT+01:00 Alessandro Pasotti <<a href="mailto:apasotti@gmail.com">apasotti@gmail.com</a>>:<br>
>> > 2015-11-03 9:03 GMT+01:00 Andrea Peri <<a href="mailto:aperi2007@gmail.com">aperi2007@gmail.com</a>>:<br>
>> >><br>
>> >> Hi,<br>
>> >><br>
>> >> I'm try to retrieve the lists of layer metadata information using a<br>
>> >> python<br>
>> >> code.<br>
>> >><br>
>> >> (see the image for sample).<br>
>> >><br>
>> >> I found the QgsProviderMetadata, but I'm not sure it is the right<br>
>> >> class.<br>
>> >> To retrieve the layer level - metadata from qgis project.<br>
>> >><br>
>> >> Any hints is welcome<br>
>> >><br>
>> >> Thx.<br>
>> >><br>
>> >><br>
>> ><br>
>> ><br>
>> > You can either call layer.metadata() that returns an HTML formatted<br>
>> > list, or<br>
>> > call the individual getters, like layer.attribution(), layer.title()<br>
>> > etc.<br>
>> > etc.<br>
>> ><br>
>> > AFAIK there is not any dict-returning function that gives back the kvp<br>
>> > metadata.<br>
>> ><br>
>> > Regards<br>
>> ><br>
>> > --<br>
>> > Alessandro Pasotti<br>
>> > w3: <a href="http://www.itopen.it" rel="noreferrer" target="_blank">www.itopen.it</a><br>
>><br>
>><br>
>><br>
>> --<br>
>> -----------------<br>
>> Andrea Peri<br>
>> . . . . . . . . .<br>
>> qwerty àèìòù<br>
>> -----------------<br>
><br>
><br>
><br>
><br>
> --<br>
> Alessandro Pasotti<br>
> w3: <a href="http://www.itopen.it" rel="noreferrer" target="_blank">www.itopen.it</a><br>
<br>
<br>
<br>
--<br>
-----------------<br>
Andrea Peri<br>
. . . . . . . . .<br>
qwerty àèìòù<br>
-----------------<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Alessandro Pasotti<br>w3: <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div></div>