<div dir="ltr"><div><div>hi all,<br>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 .<br></div> thanks,<br></div>hema<br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 19, 2015 at 7:44 PM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le jeudi 19 février 2015 10:49:58, Hema Yeedunuri a écrit :<br>
<div><div class="h5">> hi all,<br>
><br>
> Is it possible to update geometry of the deleted feature .I delete feature<br>
> and then at the same deleted feature id i want to setgeometry to it .how<br>
> can it be done.<br>
<br>
</div></div>Hema,<br>
<br>
With the shapefile driver, you can call SetFeature() with a feature whose<br>
feature id corresponds to a deleted feature id.<br>
(It would be more logical to call CreateFeature() with the FID set, but the<br>
implementation of CreateFeature() in the shapefile driver currently disregards<br>
the feature id if set)<br>
<span class="HOEnZb"><font color="#888888"><br>
Even<br>
<br>
--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a><br>
</font></span></blockquote></div><br></div>