Ticket #1456 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

OGRShapeLayer SetFeature() DeleteFeature() do not set dirty header flag

Reported by: d0rian@yahoo.com Assigned to: warmerdam
Priority: highest Milestone: 1.4.1
Component: OGR_SF Version: 1.4.0
Severity: normal Keywords:
Cc:

Description (Last modified by mloskot)

createFeature sets bHeaderDirty which is used by the sync to file function.

set and delete feature need to also set the bHeaderDirty flag or the changes are not written to disk with the sync function unless you createFeature or destroy the datasource.

Change History

01/23/07 17:26:34 changed by warmerdam

I have confirmed these.  

In fact deleting a record doesn't change the shapefile or dbf headers, but
it turns out that writing out the dbf header is the easiest way to also
force the current record to be written to disk.  

Likewise for SetFeature(). 

Applying fix in trunk and 1.4 branch. 

03/25/07 20:29:16 changed by hobu

  • description changed.
  • milestone set to 1.4.1.

04/08/07 10:28:43 changed by mloskot

  • description changed.