NTv2 File Processing Routines
|
Data Fields | |
char | n_end [NTV2_NAME_LEN] |
char | filler [NTV2_NAME_LEN] |
NTv2 binary file end record
There are files (such as all Canadian files) that have only the first four bytes correct (i.e. "END xxxx"), and there are files (such as italy/rer.gsb) that omit this record completely. Fortunately, we don't rely on the end-record when reading a file, but depend on the num-subfiles field in the overview record.
Also, very few files that I've seen actually zero out the filler field. Some files fill the field with spaces. Most files just contain garbage bytes (which is bogus, IMNSHO, since you can't then compare or checksum files properly).
char NTV2_FILE_END::filler[NTV2_NAME_LEN] |
Totally unused (should be zeroed out)
char NTV2_FILE_END::n_end[NTV2_NAME_LEN] |
"END "