[gdal-dev] overwrite shapefile

Ramiro Gonzalez ramirogonzalez at suremptec.com.ar
Tue May 24 14:50:16 EDT 2011


I want to overwrite a shapefile using ogr(c++). If the dbf file in the
destination shapefile is already open by anather program(exel), the
operation fails in the middle and only the shp and shx files are updated.
How could I check, using OGR, if the dbf(or any other file in the shapefile)
is blocked before I overwrite it?

I tested this with "ogr2ogr -overwrite destination source.shp" and the same
thing happens

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110524/4154af19/attachment.html

More information about the gdal-dev mailing list