Thank&#39;s for your suggestion.<br>I test the OGRLayer::SetFeature() method, but it don&#39;t write the file after that. I think the reason is what say <span class="gI"><span class="go">Chaitanya</span></span> (thank you) about the driver which don&#39;t write until the handle is closed.<br>
I think the best way is to write a CSV/VRT file.<br>I&#39;m trying now.<br><br><br><div class="gmail_quote">2011/3/11 Even Rouault <span dir="ltr">&lt;<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Selon Mohamed Saād HESSANE &lt;<a href="mailto:saad.hessane@gmail.com">saad.hessane@gmail.com</a>&gt;:<br>

<br>
Mohamed,<br>
<br>
you can also use the OGRLayer::SetFeature() method to update an existing feature<br>
from a shapefile. But be aware that if you expand the geometry, its binary size<br>
will increase, so when you ask the geometry to be written by SetFeature(), the<br>
shape driver will write it at the end of the .shp file, so you might end up<br>
losing a lot of space. The same also applies to your current method of deleting<br>
and recreating a new feature.<br>
<br>
Best regards,<br>
<font color="#888888"><br>
Even<br>
</font><div><div></div><div class="h5"><br>
&gt; Hy list,<br>
&gt; I&#39; m trying to add on the fly points comming from GPS to a shapefile.<br>
&gt; But the only way i find is to delete the feature from the shapefille, and<br>
&gt; create a new feature with the added point. There&#39;s another way?<br>
&gt; Thank you<br>
&gt;<br>
<br>
<br>
</div></div></blockquote></div><br>