2015-11-03 12:09 GMT+01:00 Andrea Peri <[email protected]>: > I will try. > please send me some instructions on how to do. >
0. you need a github account 1. navigate through the cookbook and find a page that you want to edit, for example: http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/loadlayer.html 2. click the 'fix me' link in the footer 3. edit and commit, will create a pull request A. > > > 2015-11-03 10:28 GMT+01:00 Alessandro Pasotti <[email protected]>: > > > > You're welcome! > > > > If it's not yet in the python cookbook, you might consider adding a > recipe > > there. > > > > > > 2015-11-03 10:23 GMT+01:00 Andrea Peri <[email protected]>: > >> > >> Hi Alessandro, > >> > >> your hint is working. > >> Effectivelly I was not thinking that the title and abstract was > >> directly accessible from individual getters on layer class. > >> > >> Thx for help, > >> > >> A. > >> > >> > >> > >> 2015-11-03 9:17 GMT+01:00 Alessandro Pasotti <[email protected]>: > >> > 2015-11-03 9:03 GMT+01:00 Andrea Peri <[email protected]>: > >> >> > >> >> Hi, > >> >> > >> >> I'm try to retrieve the lists of layer metadata information using a > >> >> python > >> >> code. > >> >> > >> >> (see the image for sample). > >> >> > >> >> I found the QgsProviderMetadata, but I'm not sure it is the right > >> >> class. > >> >> To retrieve the layer level - metadata from qgis project. > >> >> > >> >> Any hints is welcome > >> >> > >> >> Thx. > >> >> > >> >> > >> > > >> > > >> > You can either call layer.metadata() that returns an HTML formatted > >> > list, or > >> > call the individual getters, like layer.attribution(), layer.title() > >> > etc. > >> > etc. > >> > > >> > AFAIK there is not any dict-returning function that gives back the kvp > >> > metadata. > >> > > >> > Regards > >> > > >> > -- > >> > Alessandro Pasotti > >> > w3: www.itopen.it > >> > >> > >> > >> -- > >> ----------------- > >> Andrea Peri > >> . . . . . . . . . > >> qwerty àèìòù > >> ----------------- > > > > > > > > > > -- > > Alessandro Pasotti > > w3: www.itopen.it > > > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty àèìòù > ----------------- > -- Alessandro Pasotti w3: www.itopen.it
_______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
