aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pj_gridinfo.c4
-rw-r--r--test/old/td_out.dist2
2 files changed, 3 insertions, 3 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;
diff --git a/test/old/td_out.dist b/test/old/td_out.dist
index 060d14d2..f6b2a219 100644
--- a/test/old/td_out.dist
+++ b/test/old/td_out.dist
@@ -1,6 +1,6 @@
##############################################################
1st through ntv1, 2nd through conus
-111d00'00.000"W 44d00'00.000"N 0.0 111d0'3.085"W 43d59'59.756"N 0.000
+111d00'00.000"W 44d00'00.000"N 0.0 111d0'3.208"W 43d59'59.732"N 0.000
111d00'00.000"W 39d00'00.000"N 0.0 111d0'2.604"W 38d59'59.912"N 0.000
##############################################################
As above, but without ntv1 everything goes through conus file.