diff options
| author | Thomas Knudsen <thokn@sdfe.dk> | 2017-10-25 20:46:56 +0200 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2017-10-29 14:02:13 +0100 |
| commit | 47dd489e1def98f583a3288e4e3f101ae741b4e2 (patch) | |
| tree | 348c698742b2709e3df11f7ddfb859ba4473526a /src/PJ_fahey.c | |
| parent | 064efb77179850a552c56831047e8e739aed4067 (diff) | |
| download | PROJ-47dd489e1def98f583a3288e4e3f101ae741b4e2.tar.gz PROJ-47dd489e1def98f583a3288e4e3f101ae741b4e2.zip | |
Remove superfluous internal selftests from projection files matching patterns PJ_f....c and PJ_e....c
Diffstat (limited to 'src/PJ_fahey.c')
| -rw-r--r-- | src/PJ_fahey.c | 44 |
1 files changed, 1 insertions, 43 deletions
diff --git a/src/PJ_fahey.c b/src/PJ_fahey.c index 42318f8f..4fcb7849 100644 --- a/src/PJ_fahey.c +++ b/src/PJ_fahey.c @@ -37,46 +37,4 @@ PJ *PROJECTION(fahey) { return P; } -#ifndef PJ_SELFTEST -int pj_fahey_selftest (void) {return 0;} -#else - -int pj_fahey_selftest (void) { - double tolerance_lp = 1e-10; - double tolerance_xy = 1e-7; - - char s_args[] = {"+proj=fahey +a=6400000 +lat_1=0.5 +lat_2=2"}; - - LP fwd_in[] = { - { 2, 1}, - { 2,-1}, - {-2, 1}, - {-2,-1} - }; - - XY s_fwd_expect[] = { - { 182993.34464912376, 101603.19356988439}, - { 182993.34464912376, -101603.19356988439}, - {-182993.34464912376, 101603.19356988439}, - {-182993.34464912376, -101603.19356988439}, - }; - - XY inv_in[] = { - { 200, 100}, - { 200,-100}, - {-200, 100}, - {-200,-100} - }; - - LP s_inv_expect[] = { - {0.0021857886080359551, 0.00098424601668238403}, - {0.0021857886080359551, -0.00098424601668238403}, - {-0.0021857886080359551, 0.00098424601668238403}, - {-0.0021857886080359551, -0.00098424601668238403}, - }; - - 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_fahey_selftest (void) {return 10000;} |
