[Qgis-developer] Why do I get an empty attribute map when using featureAtId()

Nathan Woodrow madmanwoo at gmail.com
Wed Jan 2 07:15:06 PST 2013


The data provider takes a list of ints as the last argument to tell which
attributes you want to return:
http://www.qgis.org/api/classQgsVectorDataProvider.html#a62ffd8535cf91556e0e5acdcc93a6d11

You should need something like this: lineProvider.featureAtId(int(i),
ftLine, True, allLineAttrs )

- Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130103/3e8ee9bd/attachment.html>


More information about the Qgis-developer mailing list