diff options
| author | Thomas Knudsen <thokn@sdfe.dk> | 2017-11-12 06:30:06 +0100 |
|---|---|---|
| committer | Thomas Knudsen <thokn@sdfe.dk> | 2017-11-12 06:30:06 +0100 |
| commit | 0a578911ee7158852eaf62cd9e0cedebf937dc3a (patch) | |
| tree | 3ff56a32f2518f8dcccd609aad3a21688aa7eed2 /src/PJ_somerc.c | |
| parent | 98dd8d5b6c0f24b8e2be1a8e77e4dfac72a2dc50 (diff) | |
| download | PROJ-0a578911ee7158852eaf62cd9e0cedebf937dc3a.tar.gz PROJ-0a578911ee7158852eaf62cd9e0cedebf937dc3a.zip | |
Remove selftests from projection files starting with r,s,t,u
Diffstat (limited to 'src/PJ_somerc.c')
| -rw-r--r-- | src/PJ_somerc.c | 59 |
1 files changed, 1 insertions, 58 deletions
diff --git a/src/PJ_somerc.c b/src/PJ_somerc.c index 7324d48a..69fb6d47 100644 --- a/src/PJ_somerc.c +++ b/src/PJ_somerc.c @@ -89,61 +89,4 @@ PJ *PROJECTION(somerc) { } -#ifndef PJ_SELFTEST -int pj_somerc_selftest (void) {return 0;} -#else - -int pj_somerc_selftest (void) { - double tolerance_lp = 1e-10; - double tolerance_xy = 1e-7; - - char e_args[] = {"+proj=somerc +ellps=GRS80 +lat_1=0.5 +lat_2=2 +n=0.5"}; - char s_args[] = {"+proj=somerc +R=6400000 +lat_1=0.5 +lat_2=2 +n=0.5"}; - - LP fwd_in[] = { - { 2, 1}, - { 2,-1}, - {-2, 1}, - {-2,-1} - }; - - XY e_fwd_expect[] = { - {222638.98158654713, 110579.96521824898}, - {222638.98158654713, -110579.96521825089}, - {-222638.98158654713, 110579.96521824898}, - {-222638.98158654713, -110579.96521825089}, - }; - - XY s_fwd_expect[] = { - {223402.14425527418, 111706.74357494408}, - {223402.14425527418, -111706.74357494518}, - {-223402.14425527418, 111706.74357494408}, - {-223402.14425527418, -111706.74357494518}, - }; - - XY inv_in[] = { - { 200, 100}, - { 200,-100}, - {-200, 100}, - {-200,-100} - }; - - LP e_inv_expect[] = { - {0.0017966305682390426, 0.00090436947704129484}, - {0.0017966305682390426, -0.00090436947704377105}, - {-0.0017966305682390426, 0.00090436947704129484}, - {-0.0017966305682390426, -0.00090436947704377105}, - }; - - LP s_inv_expect[] = { - {0.0017904931097838226, 0.00089524655485801927}, - {0.0017904931097838226, -0.00089524655484529714}, - {-0.0017904931097838226, 0.00089524655485801927}, - {-0.0017904931097838226, -0.00089524655484529714}, - }; - - return pj_generic_selftest (e_args, s_args, tolerance_xy, tolerance_lp, 4, 4, fwd_in, e_fwd_expect, s_fwd_expect, inv_in, e_inv_expect, s_inv_expect); -} - - -#endif +int pj_somerc_selftest (void) {return 10000;} |
