aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_cea.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/PJ_cea.c')
-rw-r--r--src/PJ_cea.c58
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;}