Try setting the layer editable and then turning editing off.  There seems
(too me) to be a bug in the refreshing of the attributes on memory layers.

- Nathan

On Mon, Feb 28, 2011 at 10:50 PM, Ziegler Stefan <[email protected]>wrote:

>  Hi
>
> I'm trying to add some attributes to a memory provider but with no luck. I
> pasted the code from the cookbook [1] into the python console. The layer
> with the feature is added but there are no attributes in the layer. Did I
> miss something? Has something changed?
>
> [1]: http://www.qgis.org/pyqgis-cookbook/vector.html#memory-provider
>
> regards
> Stefan
>
> Mit freundlichem Gruss
> Stefan Ziegler
> Leiter amtliche Vermessung
>
> Kanton Solothurn
> Bau- und Justizdepartement
> Amt für Geoinformation
> Rötistrasse 4
> 4501 Solothurn
> Telefon 032 627 75 96
> Telefax 032 627 75 98
> [email protected]
> http://www.so.ch
>
>
> _______________________________________________
> Qgis-developer mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to