aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_somerc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/PJ_somerc.c')
-rw-r--r--src/PJ_somerc.c59
1 files changed, 1 insertions, 58 deletions
diff --git a/src/PJ_somerc.c b/src/PJ_somerc.c
index 7324d48a..69fb6d47 100644
--- a/src/PJ_somerc.c
+++ b/src/PJ_somerc.c
@@ -89,61 +89,4 @@ PJ *PROJECTION(somerc) {
}
-#ifndef PJ_SELFTEST
-int pj_somerc_selftest (void) {return 0;}
-#else
-
-int pj_somerc_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char e_args[] = {"+proj=somerc +ellps=GRS80 +lat_1=0.5 +lat_2=2 +n=0.5"};
- char s_args[] = {"+proj=somerc +R=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[] = {
- {222638.98158654713, 110579.96521824898},
- {222638.98158654713, -110579.96521825089},
- {-222638.98158654713, 110579.96521824898},
- {-222638.98158654713, -110579.96521825089},
- };
-
- XY s_fwd_expect[] = {
- {223402.14425527418, 111706.74357494408},
- {223402.14425527418, -111706.74357494518},
- {-223402.14425527418, 111706.74357494408},
- {-223402.14425527418, -111706.74357494518},
- };
-
- XY inv_in[] = {
- { 200, 100},
- { 200,-100},
- {-200, 100},
- {-200,-100}
- };
-
- LP e_inv_expect[] = {
- {0.0017966305682390426, 0.00090436947704129484},
- {0.0017966305682390426, -0.00090436947704377105},
- {-0.0017966305682390426, 0.00090436947704129484},
- {-0.0017966305682390426, -0.00090436947704377105},
- };
-
- LP s_inv_expect[] = {
- {0.0017904931097838226, 0.00089524655485801927},
- {0.0017904931097838226, -0.00089524655484529714},
- {-0.0017904931097838226, 0.00089524655485801927},
- {-0.0017904931097838226, -0.00089524655484529714},
- };
-
- 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_somerc_selftest (void) {return 10000;}