Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#4095 closed defect (fixed)

ogr2ogr -overwrite with esri shapefiles doesn't check if destination's .dbf is already open

Reported by: ramiro Owned by: warmerdam
Priority: normal Milestone: 1.9.0
Component: OGR_SF Version: unspecified
Severity: normal Keywords:


ogr2ogr -overwrite destination source.shp

If destination shapefile already exist and it's dbf file is open by anather program(exel), the operation fails in the middle and only the shp and shx files are updated.

Change History (2)

comment:1 Changed 10 years ago by Even Rouault

Component: UtilitiesOGR_SF
Milestone: 1.9.0
Resolution: fixed
Status: newclosed

r22434 /trunk/gdal/ogr/ogrsf_frmts/shape/ogrshapedatasource.cpp: Shapefile : refuse to open a .shp in update mode if the matching .dbf exists but cannot be opened in update mode too ( #4095 )

comment:2 Changed 10 years ago by Even Rouault

r22925 /trunk/gdal/ogr/ogrsf_frmts/shape/ogrshapedatasource.cpp: Shape: Don't prevent ogr2ogr -overwrite from overwriting a corrupt DBF file (follow-up fix for #4095)

Note: See TracTickets for help on using tickets.