[Qgis-developer] QgeFeature.setAttributeMap()

Düster Horst Horst.Duester at bd.so.ch
Tue Feb 12 05:02:35 EST 2008


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


The content of attrib printed with "print attrib" looks well:
{0: <PyQt4.QtCore.QVariant object at 0xb7ad1b6c>, 1:
<PyQt4.QtCore.QVariant object at 0xb7ad1bac>}


Were there made changes in the setAttributeMap method??

Regards
Horst
------------------------------------------------

Dr. Horst Düster
GIS-Koordinator, Stv. Amtschef

Kanton Solothurn
Bau- und Justizdepartement
Amt für Geoinformation
SO!GIS Koordination
Rötistrasse 4
CH-4501 Solothurn

Telefon ++41(0)32 627 25 32
Telefax ++41(0)32 627 22 14

mailto:horst.duester at bd.so.ch
http://www.agi.so.ch


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20080212/d86559b8/attachment.html


More information about the Qgis-developer mailing list