[PATCH] delete fields in .dbf
|Reported by:||wonder||Owned by:||warmerdam|
|Cc:||jef, msieczka, neteler, gislab|
I've developed a patch to allow deletion of fields in an existing DBF file. It's done by overwriting header and moving records in DBF file (without creating a new temporary file).
The patch adds new C++ function OGRLayer::DeleteField?(int field) and C API equivalent OGR_L_DeleteField.
One downside is that after deletion of a field, the .dbf file is not truncated as there's no hook for truncation. However this doesn't affect overall functionality.
Change History (21)
comment:2 Changed 8 years ago by
|Component:||default → OGR_SF|
|Status:||new → assigned|