[Qgis-developer] Few improvements in PyQGIS
luca_manganelli at comune.trento.it
luca_manganelli at comune.trento.it
Fri Feb 5 01:47:47 EST 2010
qgis-developer-bounces at lists.osgeo.org scritti il 04/02/2010 22.24.19
> Hi all
> I hope this is a good news for developers using python. In svn trunk
> (r12878) there are few additions that make QGIS API more pythonic.
> [CUT ALL]
Simply ......... marvellous.
Another nice feature would be, to fetch a value not only with integers, but
also by field name:
> Btw. fetching a list of values in an column gets this simple:
> >>> lst = [ feat[1] for feat in layer ]
> (just don't forget a select() call before iterating)
lst = [ feat["FIELDNAME"] for feat in layer ]
it would be a really nice feature!
More information about the Qgis-developer
mailing list