[gdal-dev] Delete Feature and update the feature with geometry at same feature id

Hema Yeedunuri hema.yeedunuri at amigooptima.in
Sun Feb 22 22:22:39 PST 2015

hi all,
I tried the same way i,e deleted feature and then with the same fid i have
created the feature but this is increasing the total fid count.i want to do
undo/redo on adding geometry and delete geometry .

On Thu, Feb 19, 2015 at 7:44 PM, Even Rouault <even.rouault at spatialys.com>

> Le jeudi 19 février 2015 10:49:58, Hema Yeedunuri a écrit :
> > hi all,
> >
> > Is it possible to update geometry of the deleted feature .I delete
> feature
> > and then at the same deleted feature id i want to setgeometry to it .how
> > can it be done.
> Hema,
> With the shapefile driver, you can call SetFeature() with a feature whose
> feature id corresponds to a deleted feature id.
> (It would be more logical to call CreateFeature() with the FID set, but the
> implementation of CreateFeature() in the shapefile driver currently
> disregards
> the feature id if set)
> Even
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20150223/cbad827c/attachment.html>

More information about the gdal-dev mailing list