Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#2672 closed enhancement (fixed)

[PATCH] add fields in existing .dbf

Reported by: wonder Owned by: warmerdam
Priority: normal Milestone: 1.6.0
Component: OGR_SF Version: svn-trunk
Severity: normal Keywords: shape
Cc: msieczka

Description

Attached patch adds functionality to add fields to shapefiles that already exist and contain records. It shifts records in .dbf file (file gets automatically inflated) and finally updates DBF header once all records are on the right place. Contents of new field is filled by NULL values.

Attachments (1)

dbf_add_field.patch (4.0 KB ) - added by wonder 15 years ago.

Download all attachments as: .zip

Change History (3)

by wonder, 15 years ago

Attachment: dbf_add_field.patch added

comment:1 by warmerdam, 15 years ago

Keywords: shape added
Milestone: 1.6.0
Resolution: fixed
Status: newclosed

Upstreamed to shapelib.

Committed in trunk (r15715 and r15717).

Also added a test suite test for creating fields on populated layers (r15714).

comment:2 by msieczka, 15 years ago

Cc: msieczka added
Note: See TracTickets for help on using tickets.