[Qgis-developer] QgeFeature.setAttributeMap()

Martin Dobias wonder.sk at gmail.com
Wed Feb 13 05:10:39 EST 2008


On Feb 12, 2008 11:02 AM, Düster Horst <Horst.Duester at bd.so.ch> wrote:
>
>
> I do have some trouble with QgsFeatures and attributeMaps. The following
> Python code works in former times for me. Unfortunately I don't know with
> which rev. it changed.
>
> ...
> provider.getNextFeature(feat):
> attrib = feat.attributeMap()
>
> fet = QgsFeature()
> fet.setAttributeMap(attrib)
> ...
>
> Now when I run the plugin I get the error:
>
> fet.setAttributeMap(attrib)
> AttributeError: setAttributeMap

Hi,

searching in SVN reveals that setAttributeMap() has been added 4
months ago, however adding python wrapper has been omitted :-/
I've fixed this in r8152.

COMMITERS: when commiting any changes in header files for CORE and GUI
libraries please make sure that you've updated also .sip wrappers
accordingly.

Martin


More information about the Qgis-developer mailing list