aboutsummaryrefslogtreecommitdiff
path: root/src/pj_geocent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pj_geocent.c')
-rw-r--r--src/pj_geocent.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/pj_geocent.c b/src/pj_geocent.c
index 667c29bd..eca62080 100644
--- a/src/pj_geocent.c
+++ b/src/pj_geocent.c
@@ -58,49 +58,3 @@ PJ *PROJECTION(geocent) {
return P;
}
-
-#ifndef PJ_SELFTEST
-int pj_geocent_selftest (void) {return 0;}
-#else
-
-int pj_geocent_selftest (void) {
-
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char e_args[] = {"+proj=geocent +ellps=GRS80 +lat_1=0.5 +lat_2=2"};
- char s_args[] = {"+proj=geocent +a=6400000 +lat_1=0.5 +lat_2=2"};
-
- LP fwd_in[] = {
- { 2, 1},
- { 2,-1},
- {-2, 1},
- {-2,-1}
- };
-
- XY e_fwd_expect[] = {
- { 222638.98158654713, 111319.49079327357},
- { 222638.98158654713, -111319.49079327357},
- {-222638.98158654713, 111319.49079327357},
- {-222638.98158654713, -111319.49079327357},
- };
-
- XY inv_in[] = {
- { 200, 100},
- { 200,-100},
- {-200, 100},
- {-200,-100}
- };
-
- LP e_inv_expect[] = {
- { 0.0017966305682390426, 0.00089831528411952132},
- { 0.0017966305682390426, -0.00089831528411952132},
- {-0.0017966305682390426, 0.00089831528411952132},
- {-0.0017966305682390426, -0.00089831528411952132},
- };
-
- return pj_generic_selftest (e_args, s_args, tolerance_xy, tolerance_lp, 4, 4, fwd_in, e_fwd_expect, 0, inv_in, e_inv_expect, 0);
-}
-
-#endif
-