aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_tpeqd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/PJ_tpeqd.c')
-rw-r--r--src/PJ_tpeqd.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/src/PJ_tpeqd.c b/src/PJ_tpeqd.c
index 6bea3968..dd19da8c 100644
--- a/src/PJ_tpeqd.c
+++ b/src/PJ_tpeqd.c
@@ -105,61 +105,4 @@ PJ *PROJECTION(tpeqd) {
}
-#ifndef PJ_SELFTEST
int pj_tpeqd_selftest (void) {return 0;}
-#else
-
-int pj_tpeqd_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char e_args[] = {"+proj=tpeqd +ellps=GRS80 +lat_1=0.5 +lat_2=2 +n=0.5"};
- char s_args[] = {"+proj=tpeqd +a=6400000 +lat_1=0.5 +lat_2=2 +n=0.5"};
-
- LP fwd_in[] = {
- { 2, 1},
- { 2,-1},
- {-2, 1},
- {-2,-1}
- };
-
- XY e_fwd_expect[] = {
- {-27750.758831679042, -222599.40369177726},
- {-250434.93702403645, -222655.93819326628},
- {-27750.758831679042, 222599.40369177726},
- {-250434.93702403645, 222655.93819326628},
- };
-
- XY s_fwd_expect[] = {
- {-27845.882978485075, -223362.43069526015},
- {-251293.37876465076, -223419.15898590829},
- {-27845.882978485075, 223362.43069526015},
- {-251293.37876465076, 223419.15898590829},
- };
-
- XY inv_in[] = {
- { 200, 100},
- { 200,-100},
- {-200, 100},
- {-200,-100}
- };
-
- LP e_inv_expect[] = {
- {-0.00089855554821257374, 1.2517966304145272},
- {0.0008985555481998515, 1.2517966304145272},
- {-0.00089855431859741167, 1.2482033692781642},
- {0.00089855431859741167, 1.2482033692781642},
- };
-
- LP s_inv_expect[] = {
- {-0.00089548606640108474, 1.2517904929571837},
- {0.0008954860663883625, 1.2517904929571837},
- {-0.000895484845182587, 1.248209506737604},
- {0.00089548484516986475, 1.248209506737604},
- };
-
- 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