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_cass.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_cass.c')
| -rw-r--r-- | src/PJ_cass.c | 57 |
1 files changed, 1 insertions, 56 deletions
diff --git a/src/PJ_cass.c b/src/PJ_cass.c index 6955146e..603ce013 100644 --- a/src/PJ_cass.c +++ b/src/PJ_cass.c @@ -118,59 +118,4 @@ PJ *PROJECTION(cass) { } -#ifndef PJ_SELFTEST -int pj_cass_selftest (void) {return 0;} -#else - -int pj_cass_selftest (void) { - double tolerance_lp = 1e-10; - double tolerance_xy = 1e-7; - - char e_args[] = {"+proj=cass +ellps=GRS80 +lat_1=0.5 +lat_2=2"}; - char s_args[] = {"+proj=cass +R=6400000 +lat_1=0.5 +lat_2=2"}; - - LP fwd_in[] = { - { 2, 1}, - { 2,-1}, - {-2, 1}, - {-2,-1} - }; - - XY e_fwd_expect[] = { - { 222605.28577699114, 110642.22925399939}, - { 222605.28577699114, -110642.22925399939}, - {-222605.28577699114, 110642.22925399939}, - {-222605.28577699114, -110642.22925399939}, - }; - - XY s_fwd_expect[] = { - { 223368.10520348375, 111769.14504058579}, - { 223368.10520348375, -111769.14504058579}, - {-223368.10520348375, 111769.14504058579}, - {-223368.10520348375, -111769.14504058579}, - }; - - XY inv_in[] = { - { 200, 100}, - { 200,-100}, - {-200, 100}, - {-200,-100} - }; - - LP e_inv_expect[] = { - { 0.0017966305684613522, 0.00090436947663183841}, - { 0.0017966305684613522, -0.00090436947663183841}, - {-0.0017966305684613522, 0.00090436947663183841}, - {-0.0017966305684613522, -0.00090436947663183841}, - }; - - LP s_inv_expect[] = { - { 0.0017904931100023887, 0.00089524655445477922}, - { 0.0017904931100023887, -0.00089524655445477922}, - {-0.0017904931100023887, 0.00089524655445477922}, - {-0.0017904931100023887, -0.00089524655445477922}, - }; - - 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_cass_selftest (void) {return 10000;} |
