Thank you Jurgen for the valuable information. I would not have been able to 
get my plugin to do the update I need to have it with out your kindness.

Is there anywhere such items are explained? Is that part of the api doc through 
inheritance? If so I would try to look into it more and do my homework so that 
I am not a asking too many questions. But just the same, I am also ashamed to 
ask, and take your valuable time and I spend quite a bit of my time wandering 
around. 

Thank you Jurgen again and I also say, God bless you.

Maaza

--- On Sat, 4/30/11, Jürgen E. Fischer <j...@norbit.de> wrote:

From: Jürgen E. Fischer <j...@norbit.de>
Subject: Re: [Qgis-developer] Attribute data update of a shape file
To: qgis-developer@lists.osgeo.org
Date: Saturday, April 30, 2011, 3:25 AM

Hi,

On Fri, 29. Apr 2011 at 07:56:35 -0700, maaza mekuria wrote:
>    I have a written a plugin that updates an attribute of a shape file and it
>    tells me it ran fine and yet, I am not able to see the changes in the
>    attribute table once the program finishes. I am using QGIS 1.6 Copiapo on
>    Windows). I am compiling using the 1.7 source, but I have tried using the
>    trunk version and it does not seem to matter at all.

Changes to the feature buffer filled by QgsVectorLayer::nextFeature() are not
propagated to the layer.

Use QgsVectorLayer::changeAttributeValue() [1].


Jürgen

[1] 
http://www.qgis.org/api/classQgsVectorLayer.html#c6713fc84331e0b459f10fd0d7ecd8b8

-- 
Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-918175-20
Dipl.-Inf. (FH)           Rheinstraße 13            Fax. +49-4931-918175-50
Software Engineer         D-26506 Norden               http://www.norbit.de

-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to