aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_omerc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/PJ_omerc.c')
-rw-r--r--src/PJ_omerc.c44
1 files changed, 1 insertions, 43 deletions
diff --git a/src/PJ_omerc.c b/src/PJ_omerc.c
index f0b4b439..b29033eb 100644
--- a/src/PJ_omerc.c
+++ b/src/PJ_omerc.c
@@ -224,46 +224,4 @@ PJ *PROJECTION(omerc) {
}
-#ifndef PJ_SELFTEST
-int pj_omerc_selftest (void) {return 0;}
-#else
-
-int pj_omerc_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char e_args[] = {"+proj=omerc +ellps=GRS80 +lat_1=0.5 +lat_2=2"};
-
- LP fwd_in[] = {
- { 2, 1},
- { 2,-1},
- {-2, 1},
- {-2,-1}
- };
-
- XY e_fwd_expect[] = {
- { 222650.796885261341, 110642.229314983808},
- { 222650.796885261341, -110642.229314983808},
- {-222650.796885261545, 110642.229314983808},
- {-222650.796885261545, -110642.229314983808},
- };
-
- XY inv_in[] = {
- { 200, 100},
- { 200,-100},
- {-200, 100},
- {-200,-100}
- };
-
- LP e_inv_expect[] = {
- { 0.00179663056816996357, 0.000904369474808157338},
- { 0.00179663056816996357, -0.000904369474820879583},
- {-0.0017966305681604536, 0.000904369474808157338},
- {-0.0017966305681604536, -0.000904369474820879583},
- };
-
- return pj_generic_selftest (e_args, 0, tolerance_xy, tolerance_lp, 4, 4, fwd_in, e_fwd_expect, 0, inv_in, e_inv_expect, 0);
-}
-
-
-#endif
+int pj_omerc_selftest (void) {return 10000;}