diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-12-09 23:26:39 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-12-09 23:26:51 +0100 |
| commit | 9f908ae47cfa70d3cdb2709a8ab5d8eeb10034fc (patch) | |
| tree | 4c90b67027dca753414621977a00225f047542f5 /src/apply_gridshift.cpp | |
| parent | 1b702a82f5e009745f5ca8bbed92579e33f598d4 (diff) | |
| download | PROJ-9f908ae47cfa70d3cdb2709a8ab5d8eeb10034fc.tar.gz PROJ-9f908ae47cfa70d3cdb2709a8ab5d8eeb10034fc.zip | |
Horizontal shift grids: hide the 'positive longitude shift value = westward correction' in the CTable2/NTv1/NTv2 backends
Diffstat (limited to 'src/apply_gridshift.cpp')
| -rw-r--r-- | src/apply_gridshift.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/apply_gridshift.cpp b/src/apply_gridshift.cpp index a0ffa394..c786a50a 100644 --- a/src/apply_gridshift.cpp +++ b/src/apply_gridshift.cpp @@ -212,12 +212,12 @@ PJ_LP nad_cvt(PJ_LP in, int inverse, const HorizontalShiftGrid* grid) { return t; if (!inverse) { - in.lam -= t.lam; + in.lam += t.lam; in.phi += t.phi; return in; } - t.lam = tb.lam + t.lam; + t.lam = tb.lam - t.lam; t.phi = tb.phi - t.phi; do { @@ -235,8 +235,8 @@ PJ_LP nad_cvt(PJ_LP in, int inverse, const HorizontalShiftGrid* grid) { if (del.lam == HUGE_VAL) break; - dif.lam = t.lam - del.lam - tb.lam; - dif.phi = t.phi + del.phi - tb.phi; + dif.lam = t.lam + del.lam - tb.lam; + dif.phi = t.phi + del.phi - tb.phi; t.lam -= dif.lam; t.phi -= dif.phi; |
