diff options
| -rw-r--r-- | src/PJ_calcofi.c | 59 | ||||
| -rw-r--r-- | src/PJ_cass.c | 57 | ||||
| -rw-r--r-- | src/PJ_cc.c | 44 | ||||
| -rw-r--r-- | src/PJ_cea.c | 58 | ||||
| -rw-r--r-- | src/PJ_chamb.c | 30 | ||||
| -rw-r--r-- | src/PJ_collg.c | 44 | ||||
| -rw-r--r-- | src/PJ_comill.c | 44 | ||||
| -rw-r--r-- | src/PJ_crast.c | 45 |
8 files changed, 8 insertions, 373 deletions
diff --git a/src/PJ_calcofi.c b/src/PJ_calcofi.c index b188f7e9..2782b152 100644 --- a/src/PJ_calcofi.c +++ b/src/PJ_calcofi.c @@ -163,61 +163,4 @@ PJ *PROJECTION(calcofi) { } -#ifndef PJ_SELFTEST -int pj_calcofi_selftest (void) {return 0;} -#else - -int pj_calcofi_selftest (void) { - double tolerance_lp = 1e-10; - double tolerance_xy = 1e-7; - - char e_args[] = {"+proj=calcofi +ellps=GRS80 +lat_1=0.5 +lat_2=2 +no_defs"}; - char s_args[] = {"+proj=calcofi +R=6400000 +lat_1=0.5 +lat_2=2 +no_defs"}; - - LP fwd_in[] = { - { 2, 1}, - { 2,-1}, - {-2, 1}, - {-2,-1} - }; - - XY e_fwd_expect[] = { - {508.44487214981905, -1171.7648604175156}, - {514.99916815188112, -1145.8219814677668}, - {500.68538412539851, -1131.4453779204598}, - {507.36971913666355, -1106.1782014834275}, - }; - - XY s_fwd_expect[] = { - {507.09050748781806, -1164.7273751978314}, - {513.68613637462886, -1138.9992682173072}, - {499.33626147591531, -1124.4351309968195}, - {506.0605703929898, -1099.3756650673038}, - }; - - XY inv_in[] = { - { 200, 100}, - { 200,-100}, - {-200, 100}, - {-200,-100} - }; - - LP e_inv_expect[] = { - {-110.36330792469906, 12.032056975840137}, - {-98.455008863288782, 18.698723642506803}, - {-207.4470245036909, 81.314089278595247}, - {-62.486322854481287, 87.980755945261919}, - }; - - LP s_inv_expect[] = { - {-110.30519040955151, 12.032056975840137}, - {-98.322360950234085, 18.698723642506803}, - {-207.54490681381429, 81.314089278595247}, - {-62.576950371885275, 87.980755945261919}, - }; - - 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_calcofi_selftest (void) {return 10000;} 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;} diff --git a/src/PJ_cc.c b/src/PJ_cc.c index 9ba51386..a45eaf83 100644 --- a/src/PJ_cc.c +++ b/src/PJ_cc.c @@ -38,46 +38,4 @@ PJ *PROJECTION(cc) { } -#ifndef PJ_SELFTEST -int pj_cc_selftest (void) {return 0;} -#else - -int pj_cc_selftest (void) { - double tolerance_lp = 1e-10; - double tolerance_xy = 1e-7; - - char s_args[] = {"+proj=cc +a=6400000 +lat_1=0.5 +lat_2=2"}; - - LP fwd_in[] = { - { 2, 1}, - { 2,-1}, - {-2, 1}, - {-2,-1} - }; - - XY s_fwd_expect[] = { - {223402.14425527418, 111712.41554059254}, - {223402.14425527418, -111712.41554059254}, - {-223402.14425527418, 111712.41554059254}, - {-223402.14425527418, -111712.41554059254}, - }; - - XY inv_in[] = { - { 200, 100}, - { 200,-100}, - {-200, 100}, - {-200,-100} - }; - - LP s_inv_expect[] = { - {0.0017904931097838226, 0.00089524655481905597}, - {0.0017904931097838226, -0.00089524655481905597}, - {-0.0017904931097838226, 0.00089524655481905597}, - {-0.0017904931097838226, -0.00089524655481905597}, - }; - - 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_cc_selftest (void) {return 10000;} 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;} diff --git a/src/PJ_chamb.c b/src/PJ_chamb.c index 9edb699f..de47c2d9 100644 --- a/src/PJ_chamb.c +++ b/src/PJ_chamb.c @@ -136,32 +136,4 @@ PJ *PROJECTION(chamb) { } -#ifndef PJ_SELFTEST -int pj_chamb_selftest (void) {return 0;} -#else - -int pj_chamb_selftest (void) { - double tolerance_lp = 1e-10; - double tolerance_xy = 1e-7; - - char s_args[] = {"+proj=chamb +R=6400000 +lat_1=0.5 +lat_2=2"}; - - LP fwd_in[] = { - { 2, 1}, - { 2,-1}, - {-2, 1}, - {-2,-1} - }; - - XY s_fwd_expect[] = { - {-27864.7795868005815, -223364.324593274243}, - {-251312.283053493476, -223402.145526208304}, - {-27864.7856491046077, 223364.327328827145}, - {-251312.289116443484, 223402.142197287147}, - }; - - return pj_generic_selftest (0, s_args, tolerance_xy, tolerance_lp, 4, 4, fwd_in, 0, s_fwd_expect, 0, 0, 0); -} - - -#endif +int pj_chamb_selftest (void) {return 10000;} diff --git a/src/PJ_collg.c b/src/PJ_collg.c index 01c65cd0..15e8354c 100644 --- a/src/PJ_collg.c +++ b/src/PJ_collg.c @@ -49,46 +49,4 @@ PJ *PROJECTION(collg) { return P; } -#ifndef PJ_SELFTEST -int pj_collg_selftest (void) {return 0;} -#else - -int pj_collg_selftest (void) { - double tolerance_lp = 1e-10; - double tolerance_xy = 1e-7; - - char s_args[] = {"+proj=collg +a=6400000 +lat_1=0.5 +lat_2=2"}; - - LP fwd_in[] = { - { 2, 1}, - { 2,-1}, - {-2, 1}, - {-2,-1} - }; - - XY s_fwd_expect[] = { - {249872.921577929839, 99423.1747884602082}, - {254272.532301245432, -98559.3077607425657}, - {-249872.921577929839, 99423.1747884602082}, - {-254272.532301245432, -98559.3077607425657}, - }; - - XY inv_in[] = { - { 200, 100}, - { 200,-100}, - {-200, 100}, - {-200,-100} - }; - - LP s_inv_expect[] = { - {0.00158679719207879865, 0.00101017310941749921}, - {0.001586769215623956, -0.00101018201458258111}, - {-0.00158679719207879865, 0.00101017310941749921}, - {-0.001586769215623956, -0.00101018201458258111}, - }; - - 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_collg_selftest (void) {return 10000;} diff --git a/src/PJ_comill.c b/src/PJ_comill.c index a329c0ac..e1994478 100644 --- a/src/PJ_comill.c +++ b/src/PJ_comill.c @@ -81,46 +81,4 @@ PJ *PROJECTION(comill) { } -#ifndef PJ_SELFTEST -int pj_comill_selftest (void) {return 0;} -#else - -int pj_comill_selftest (void) { - double tolerance_lp = 1e-10; - double tolerance_xy = 1e-7; - - char s_args[] = {"+proj=comill +a=6400000 +lat_1=0.5 +lat_2=2"}; - - LP fwd_in[] = { - { 2, 1}, - { 2,-1}, - {-2, 1}, - {-2,-1} - }; - - XY s_fwd_expect[] = { - {223402.144255274179, 110611.859089458536}, - {223402.144255274179, -110611.859089458536}, - {-223402.144255274179, 110611.859089458536}, - {-223402.144255274179, -110611.859089458536}, - }; - - XY inv_in[] = { - { 200, 100}, - { 200,-100}, - {-200, 100}, - {-200,-100} - }; - - LP s_inv_expect[] = { - {0.00179049310978382265, 0.000904106801510605831}, - {0.00179049310978382265, -0.000904106801510605831}, - {-0.00179049310978382265, 0.000904106801510605831}, - {-0.00179049310978382265, -0.000904106801510605831}, - }; - - 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_comill_selftest (void) {return 10000;} diff --git a/src/PJ_crast.c b/src/PJ_crast.c index b47b0e55..30f2e304 100644 --- a/src/PJ_crast.c +++ b/src/PJ_crast.c @@ -37,47 +37,4 @@ PJ *PROJECTION(crast) { return P; } -#ifndef PJ_SELFTEST -int pj_crast_selftest (void) {return 0;} -#else - -int pj_crast_selftest (void) { - double tolerance_lp = 1e-10; - double tolerance_xy = 1e-7; - - char s_args[] = {"+proj=crast +a=6400000 +lat_1=0.5 +lat_2=2"}; - - LP fwd_in[] = { - { 2, 1}, - { 2,-1}, - {-2, 1}, - {-2,-1} - }; - - - XY s_fwd_expect[] = { - {218280.142056780722, 114306.045604279774}, - {218280.142056780722, -114306.045604279774}, - {-218280.142056780722, 114306.045604279774}, - {-218280.142056780722, -114306.045604279774}, - }; - - XY inv_in[] = { - { 200, 100}, - { 200,-100}, - {-200, 100}, - {-200,-100} - }; - - LP s_inv_expect[] = { - {0.00183225941982580187, 0.00087483943098902331}, - {0.00183225941982580187, -0.00087483943098902331}, - {-0.00183225941982580187, 0.00087483943098902331}, - {-0.00183225941982580187, -0.00087483943098902331}, - }; - - 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_crast_selftest (void) {return 10000;} |
