You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are binary ntv2 grid files in little-endian and in big-endian. Currently, proj.4 assumes all files are little-endian and fails otherwise.
The code to switch the endianness of the binary data is already there. But the trigger, when to switch, can be improved to match that of the nvt2 data.
The type of the ntv2 file can be detected from the first 16 bytes:
The number of overview header records is always 11, which is also hardcoded in pj_gridinfo_init_ntv2. Therefore one can check if byte 9 to 12 equals the integer 11 encoded in LE or BE.
The text was updated successfully, but these errors were encountered:
kwrobot
pushed a commit
to aashish24/gdal-svn
that referenced
this issue
Jan 24, 2016
There are binary ntv2 grid files in little-endian and in big-endian. Currently, proj.4 assumes all files are little-endian and fails otherwise.
The code to switch the endianness of the binary data is already there. But the trigger, when to switch, can be improved to match that of the nvt2 data.
The type of the ntv2 file can be detected from the first 16 bytes:
The number of overview header records is always 11, which is also hardcoded in
pj_gridinfo_init_ntv2
. Therefore one can check if byte 9 to 12 equals the integer 11 encoded in LE or BE.The text was updated successfully, but these errors were encountered: