aboutsummaryrefslogtreecommitdiff
path: root/src/gridcatalog.cpp
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2019-12-14 18:46:37 +0100
committerGitHub <noreply@github.com>2019-12-14 18:46:37 +0100
commit6125d3b5a488d6dbaa536d0bde9125a63c1dc91a (patch)
tree0b2df21df95a23fd3ab01f5f44309fd2aa2c0781 /src/gridcatalog.cpp
parent0f7a93138f9652e920521d09e7c73790e0cae65f (diff)
parent6a4f9cc673e247e1ca76e94d7b1aaaf3e0648c13 (diff)
downloadPROJ-6125d3b5a488d6dbaa536d0bde9125a63c1dc91a.tar.gz
PROJ-6125d3b5a488d6dbaa536d0bde9125a63c1dc91a.zip
Merge pull request #1797 from rouault/fix_hgrid_inv_switch_between_ntv2_subgrids
Horizontal grid shift: fix issue on iterative inverse computation when switching between (sub)grids (fixes #1663)
Diffstat (limited to 'src/gridcatalog.cpp')
-rw-r--r--src/gridcatalog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gridcatalog.cpp b/src/gridcatalog.cpp
index 15d81dd7..9b94fef8 100644
--- a/src/gridcatalog.cpp
+++ b/src/gridcatalog.cpp
@@ -164,7 +164,7 @@ int pj_gc_apply_gridshift( PJ *defn, int inverse,
return PJD_ERR_FAILED_TO_LOAD_GRID;
}
- output_after = nad_cvt( input, inverse, gi->ct );
+ output_after = nad_cvt( defn->ctx, input, inverse, gi->ct, 0, nullptr );
if( output_after.lam == HUGE_VAL )
{
if( defn->ctx->debug_level >= PJ_LOG_DEBUG_MAJOR )
@@ -213,7 +213,7 @@ int pj_gc_apply_gridshift( PJ *defn, int inverse,
return PJD_ERR_FAILED_TO_LOAD_GRID;
}
- output_before = nad_cvt( input, inverse, gi->ct );
+ output_before = nad_cvt( defn->ctx, input, inverse, gi->ct, 0, nullptr );
if( output_before.lam == HUGE_VAL )
{
if( defn->ctx->debug_level >= PJ_LOG_DEBUG_MAJOR )