aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_imw_p.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/PJ_imw_p.c')
-rw-r--r--src/PJ_imw_p.c44
1 files changed, 1 insertions, 43 deletions
diff --git a/src/PJ_imw_p.c b/src/PJ_imw_p.c
index 7fd31fbb..f0c88efb 100644
--- a/src/PJ_imw_p.c
+++ b/src/PJ_imw_p.c
@@ -212,46 +212,4 @@ PJ *PROJECTION(imw_p) {
}
-#ifndef PJ_SELFTEST
-int pj_imw_p_selftest (void) {return 0;}
-#else
-
-int pj_imw_p_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char e_args[] = {"+proj=imw_p +ellps=GRS80 +lat_1=0.5 +lat_2=2"};
-
- LP fwd_in[] = {
- { 2, 1},
- { 2,-1},
- {-2, 1},
- {-2,-1}
- };
-
- XY e_fwd_expect[] = {
- { 222588.4411393762, 55321.128653809537},
- { 222756.90637768712, -165827.58428832365},
- {-222588.4411393762, 55321.128653809537},
- {-222756.90637768712, -165827.58428832365},
- };
-
- XY inv_in[] = {
- { 200, 100},
- { 200,-100},
- {-200, 100},
- {-200,-100}
- };
-
- LP e_inv_expect[] = {
- { 0.0017966991379592214, 0.50090492361427374},
- { 0.0017966979081574697, 0.49909507588689922},
- {-0.0017966991379592214, 0.50090492361427374},
- {-0.0017966979081574697, 0.49909507588689922},
- };
-
- 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_imw_p_selftest (void) {return 10000;}