diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2018-10-11 11:04:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-11 11:04:46 +0200 |
| commit | 5e66226efb1d0900b463e71197a9a271a4180606 (patch) | |
| tree | c60194297df45949102a9cd9d17a1be229041c8b /src | |
| parent | d1d3d4b9db20d440ce17ae4e9a61c632bd95be06 (diff) | |
| parent | f080fc81167f7b091252c24828c288884ffdbfba (diff) | |
| download | PROJ-5e66226efb1d0900b463e71197a9a271a4180606.tar.gz PROJ-5e66226efb1d0900b463e71197a9a271a4180606.zip | |
Merge pull request #1144 from rouault/ntv1_fix
NTv1 grid shift: fix file offset for reading of shift values in ntv1_can.dat
Diffstat (limited to 'src')
| -rw-r--r-- | src/pj_gridinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pj_gridinfo.c b/src/pj_gridinfo.c index f201f39e..de0e8d31 100644 --- a/src/pj_gridinfo.c +++ b/src/pj_gridinfo.c @@ -660,7 +660,7 @@ static int pj_gridinfo_init_ntv2( projCtx ctx, PAFile fid, PJ_GRIDINFO *gilist ) static int pj_gridinfo_init_ntv1( projCtx ctx, PAFile fid, PJ_GRIDINFO *gi ) { - unsigned char header[176]; + unsigned char header[192]; /* 12 records of 16 bytes */ struct CTABLE *ct; LP ur; @@ -731,7 +731,7 @@ static int pj_gridinfo_init_ntv1( projCtx ctx, PAFile fid, PJ_GRIDINFO *gi ) ct->cvs = NULL; gi->ct = ct; - gi->grid_offset = pj_ctx_ftell( ctx, fid ); + gi->grid_offset = (long) sizeof(header); gi->format = "ntv1"; return 1; |
