<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-11-03 9:03 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,<br>
<br>
I'm try to retrieve the lists of layer metadata information using a python 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>
<span class="HOEnZb"><font color="#888888"><br>
<br></font></span></blockquote><div><br><br></div><div>You can either call layer.metadata() that returns an HTML formatted list, or call the individual getters, like layer.attribution(), layer.title() etc. etc.<br><br></div><div>AFAIK there is not any dict-returning function that gives back the kvp metadata.<br></div></div><br clear="all"></div><div class="gmail_extra">Regards<br><br></div><div class="gmail_extra">-- <br><div class="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div></div>