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

Anita Graser anitagraser at gmx.at
Wed Jan 2 08:59:32 PST 2013


On Wed, Jan 2, 2013 at 4:15 PM, Nathan Woodrow <madmanwoo at gmail.com> wrote:
> 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 )

Thanks Nathan!
And sorry for not reading the docs ;)

Best wishes
Anita


More information about the Qgis-developer mailing list