Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DbfReader header size check fails on some dbf files #65

Open
pvlcursus opened this issue Feb 14, 2025 · 0 comments
Open

DbfReader header size check fails on some dbf files #65

pvlcursus opened this issue Feb 14, 2025 · 0 comments

Comments

@pvlcursus
Copy link

DbfReader currently does a check on the header length read from bytes 8-9 in the dbf header. This length should exactly match the header descriptor size + the field descriptor size * number of fields + 1 (for the terminator mark). If the check fails DbfReader throws an exception "Invalid dBASE III file format."

However, I have a number of probably valid dbf files where the terminator mark 0Dh is followed by an extra byte 00h. This extra byte is part of the header and calculated in the header size reported in bytes 8-9. DbfReader throws an exception on these files, but I'm not convinced they violate the dBASE III file format. The same files are correctly processed by NetTopologySuite.IO.DbaseFileHeader and major ESRI geoprocessing software.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant