Shapefile REPACK cause corruptions on Windows
|Reported by:||rouault||Owned by:||rouault|
|Severity:||normal||Keywords:||ogr shape repack|
In QGIS related workflows (http://hub.qgis.org/issues/15393, http://hub.qgis.org/issues/15570), the current behaviour of REPACK that attempts to delete the existing .dbf, .shp, .shx and rename the _packed.dbf, ... as .dbf, .shp, .shx fails because there might be still file descriptors open on the .dbf, .shp, .shx in the current process or in other processes. The only reliable solution in this case is to modify in place the content of the files.