Thank's for your suggestion.<br>I test the OGRLayer::SetFeature() method, but it don'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't write until the handle is closed.<br>
I think the best way is to write a CSV/VRT file.<br>I'm trying now.<br><br><br><div class="gmail_quote">2011/3/11 Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>></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 <<a href="mailto:saad.hessane@gmail.com">saad.hessane@gmail.com</a>>:<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>
> Hy list,<br>
> I' m trying to add on the fly points comming from GPS to a shapefile.<br>
> But the only way i find is to delete the feature from the shapefille, and<br>
> create a new feature with the added point. There's another way?<br>
> Thank you<br>
><br>
<br>
<br>
</div></div></blockquote></div><br>