[gdal-dev] Update existing shape file
wow
27949218 at qq.com
Thu Jul 31 23:21:04 EDT 2008
Hi,
I wanna set new field value to an existing shape file which has been opened with update access, but it doesn't work, my code like this:
OGRFeature* pFeature = pLayer->GetFeature(2);
int nIdx = pFeature->GetFieldIndex("Name");
pFeature->UnsetField(nIdx);
pFeature->SetField( "Name", "hanJ reiver" );
Anyone give me some advices?
------------------
To the world you're little, but to a person you're the world.
Chen Xuexia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20080801/c49f0783/attachment.html
More information about the gdal-dev
mailing list