Re: [gdal-dev] overwrite shapefile

2011-05-26 Thread Ramiro Gonzalez
The ticket number is 4095. Thanks Ramiro 2011/5/24 Chaitanya kumar CH > Ramiro, > > You can use the OGRLayer::TestCapability() method to check write capability > of a layer. However, there are going to be errors if another process > accesses the files in the mean while. > > When ogr2ogr is exe

Re: [gdal-dev] overwrite shapefile

2011-05-24 Thread Chaitanya kumar CH
Ramiro, You can use the OGRLayer::TestCapability() method to check write capability of a layer. However, there are going to be errors if another process accesses the files in the mean while. When ogr2ogr is executed with -append, -overwrite or --update options, it should error out with the messag

[gdal-dev] overwrite shapefile

2011-05-24 Thread Ramiro Gonzalez
hello 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