<div dir="ltr"><br>You're welcome!<br><br>If it's not yet in the python cookbook, you might consider adding a recipe there.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-03 10:23 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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>
<div class="HOEnZb"><div class="h5"><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 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 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 list, or<br>
> call the individual getters, like layer.attribution(), layer.title() 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>
</div></div><div class="HOEnZb"><div class="h5">--<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>