diff options
| author | Thomas Knudsen <busstoptaktik@users.noreply.github.com> | 2017-11-12 06:04:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-12 06:04:13 +0100 |
| commit | d332eb78f87d8732c63ba0cf07dc711f45e43b31 (patch) | |
| tree | 6595791cf39c972e5ae588a2fc60a67129c1022d /src/PJ_hammer.c | |
| parent | 451dec5d82c01dcdc20cc954ed834a8042686f84 (diff) | |
| parent | 5b0b6cb8d477a39f3f59a38d0a1968cc9ac9f847 (diff) | |
| download | PROJ-d332eb78f87d8732c63ba0cf07dc711f45e43b31.tar.gz PROJ-d332eb78f87d8732c63ba0cf07dc711f45e43b31.zip | |
Merge pull request #656 from busstoptaktik/selftest-removal-hijk
Remove selftests from projection files starting with h, i, j, k
Diffstat (limited to 'src/PJ_hammer.c')
| -rw-r--r-- | src/PJ_hammer.c | 44 |
1 files changed, 1 insertions, 43 deletions
diff --git a/src/PJ_hammer.c b/src/PJ_hammer.c index c18c9a69..443ce247 100644 --- a/src/PJ_hammer.c +++ b/src/PJ_hammer.c @@ -72,46 +72,4 @@ PJ *PROJECTION(hammer) { } -#ifndef PJ_SELFTEST -int pj_hammer_selftest (void) {return 0;} -#else - -int pj_hammer_selftest (void) { - double tolerance_lp = 1e-10; - double tolerance_xy = 1e-7; - - char s_args[] = {"+proj=hammer +a=6400000 +lat_1=0.5 +lat_2=2"}; - - LP fwd_in[] = { - { 2, 1}, - { 2,-1}, - {-2, 1}, - {-2,-1} - }; - - XY s_fwd_expect[] = { - { 223373.78870324057, 111703.90739776699}, - { 223373.78870324057, -111703.90739776699}, - {-223373.78870324057, 111703.90739776699}, - {-223373.78870324057, -111703.90739776699}, - }; - - XY inv_in[] = { - { 200, 100}, - { 200,-100}, - {-200, 100}, - {-200,-100} - }; - - LP s_inv_expect[] = { - { 0.001790493109965961, 0.00089524655487369749}, - { 0.001790493109965961, -0.00089524655487369749}, - {-0.001790493109965961, 0.00089524655487369749}, - {-0.001790493109965961, -0.00089524655487369749}, - }; - - return pj_generic_selftest (0, s_args, tolerance_xy, tolerance_lp, 4, 4, fwd_in, 0, s_fwd_expect, inv_in, 0, s_inv_expect); -} - - -#endif +int pj_hammer_selftest (void) {return 10000;} |
