[gdal-dev] Preserving feature Information from Shapefile

Even Rouault even.rouault at mines-paris.org
Mon Nov 19 11:50:56 PST 2012


Le lundi 19 novembre 2012 18:56:02, Wuerfel, Hannes a écrit :
> Hi all,
> 
> I'm new to gdal OGR Simple Feature Library.
> What I'd like to do is to read an esri shapefile, modify the geometry and
> feature information and write a new shapefile to disc. I went through the
> read/write tutorial and I can write back the Geometry to the new shapefile
> but I'm stugged with copying the other feature informations.
> 
> Can somebody please explain to me how it should be done?

Have a look at OGRFeature::SetFrom() and OGRFeature::SetField()


More information about the gdal-dev mailing list