diff options
| author | Thomas Knudsen <busstoptaktik@users.noreply.github.com> | 2017-11-12 14:27:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-12 14:27:26 +0100 |
| commit | 1d54ce2b6f47b9d60bfd28ad0d33a883be3d510a (patch) | |
| tree | f646ba412b086f8488c21d519cf832c01dd49d42 /src/PJ_vgridshift.c | |
| parent | 667d59e50fc594cfa08c8d7949372c961fdca940 (diff) | |
| download | PROJ-1d54ce2b6f47b9d60bfd28ad0d33a883be3d510a.tar.gz PROJ-1d54ce2b6f47b9d60bfd28ad0d33a883be3d510a.zip | |
Poder autochecking again (WIP) (#652)
* Poder dual autochecking implementation
* Debugging aid: Improvements in PJ_vgridshift.c and gie.c
* Most likely, the bugbeing tripped is in the gridshift code, so. uncomment suspicious lines in deformation.gie and merge this to support the debugging effort
Diffstat (limited to 'src/PJ_vgridshift.c')
| -rw-r--r-- | src/PJ_vgridshift.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/PJ_vgridshift.c b/src/PJ_vgridshift.c index e3f3cbd3..5ab4a162 100644 --- a/src/PJ_vgridshift.c +++ b/src/PJ_vgridshift.c @@ -108,8 +108,8 @@ int pj_vgridshift_selftest (void) { a = proj_coord(0,0,0,0); a.lpz.lam = PJ_TORAD(12.5); a.lpz.phi = PJ_TORAD(55.5); - - dist = proj_roundtrip (P, PJ_FWD, 1, a); + b = a; + dist = proj_roundtrip (P, PJ_FWD, 1, &b); if (dist > 0.00000001) return 1; @@ -125,6 +125,9 @@ int pj_vgridshift_selftest (void) { if (proj_xyz_dist(expect.xyz, b.xyz) > 1e-4) failures++; expect.lpz.z = -35.880001068115234000; if (proj_xyz_dist(expect.xyz, b.xyz) > 1e-4) failures++; + /* manual roundtrip a->b, b<-b, b==a */ + b = proj_trans(P, PJ_INV, b); + if (proj_xyz_dist(a.xyz, b.xyz) > 1e-9) failures++; if (failures > 1) return 2; |
