diff options
| author | Thomas Knudsen <thokn@sdfe.dk> | 2017-10-19 19:31:32 +0200 |
|---|---|---|
| committer | Thomas Knudsen <thokn@sdfe.dk> | 2017-10-19 19:31:32 +0200 |
| commit | 60d1592843f894d4967bccc9a22b8521b5ade86d (patch) | |
| tree | ee40c9af9d09cd579f0aa15f33fdcd37ab23d564 /src/PJ_cea.c | |
| parent | 3ef083767eaf975399243246605fddc40cc097f9 (diff) | |
| download | PROJ-60d1592843f894d4967bccc9a22b8521b5ade86d.tar.gz PROJ-60d1592843f894d4967bccc9a22b8521b5ade86d.zip | |
remove internal seftests from projections starting with a 'c' (excluding PJ_cart)
Diffstat (limited to 'src/PJ_cea.c')
| -rw-r--r-- | src/PJ_cea.c | 58 |
1 files changed, 1 insertions, 57 deletions
diff --git a/src/PJ_cea.c b/src/PJ_cea.c index 0ec7376c..0ffc2f4c 100644 --- a/src/PJ_cea.c +++ b/src/PJ_cea.c @@ -98,60 +98,4 @@ PJ *PROJECTION(cea) { } -#ifndef PJ_SELFTEST -int pj_cea_selftest (void) {return 0;} -#else - -int pj_cea_selftest (void) { - double tolerance_lp = 1e-10; - double tolerance_xy = 1e-7; - - char e_args[] = {"+proj=cea +ellps=GRS80 +lat_1=0.5 +lat_2=2"}; - char s_args[] = {"+proj=cea +R=6400000 +lat_1=0.5 +lat_2=2"}; - - LP fwd_in[] = { - { 2, 1}, - { 2,-1}, - {-2, 1}, - {-2,-1} - }; - - XY e_fwd_expect[] = { - { 222638.981586547132, 110568.812396267356}, - { 222638.981586547132, -110568.812396265886}, - {-222638.981586547132, 110568.812396267356}, - {-222638.981586547132, -110568.812396265886}, - }; - - XY s_fwd_expect[] = { - { 223402.144255274179, 111695.401198614476}, - { 223402.144255274179, -111695.401198614476}, - {-223402.144255274179, 111695.401198614476}, - {-223402.144255274179, -111695.401198614476}, - }; - - XY inv_in[] = { - { 200, 100}, - { 200,-100}, - {-200, 100}, - {-200,-100} - }; - - LP e_inv_expect[] = { - { 0.00179663056823904264, 0.000904369476105564289}, - { 0.00179663056823904264, -0.000904369476105564289}, - {-0.00179663056823904264, 0.000904369476105564289}, - {-0.00179663056823904264, -0.000904369476105564289}, - }; - - LP s_inv_expect[] = { - { 0.00179049310978382265, 0.000895246554928338998}, - { 0.00179049310978382265, -0.000895246554928338998}, - {-0.00179049310978382265, 0.000895246554928338998}, - {-0.00179049310978382265, -0.000895246554928338998}, - }; - - 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_cea_selftest (void) {return 10000;} |
