aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_poly.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/PJ_poly.c')
-rw-r--r--src/PJ_poly.c59
1 files changed, 1 insertions, 58 deletions
diff --git a/src/PJ_poly.c b/src/PJ_poly.c
index 209669c0..d748be09 100644
--- a/src/PJ_poly.c
+++ b/src/PJ_poly.c
@@ -165,61 +165,4 @@ PJ *PROJECTION(poly) {
}
-#ifndef PJ_SELFTEST
-int pj_poly_selftest (void) {return 0;}
-#else
-
-int pj_poly_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char e_args[] = {"+proj=poly +ellps=GRS80 +lat_1=0.5 +lat_2=2"};
- char s_args[] = {"+proj=poly +R=6400000 +lat_1=0.5 +lat_2=2"};
-
- LP fwd_in[] = {
- { 2, 1},
- { 2,-1},
- {-2, 1},
- {-2,-1}
- };
-
- XY e_fwd_expect[] = {
- { 222605.285770237475, 110642.194561440483},
- { 222605.285770237475, -110642.194561440483},
- {-222605.285770237475, 110642.194561440483},
- {-222605.285770237475, -110642.194561440483},
- };
-
- XY s_fwd_expect[] = {
- { 223368.105210218986, 111769.110491224754},
- { 223368.105210218986, -111769.110491224754},
- {-223368.105210218986, 111769.110491224754},
- {-223368.105210218986, -111769.110491224754},
- };
-
- XY inv_in[] = {
- { 200, 100},
- { 200,-100},
- {-200, 100},
- {-200,-100}
- };
-
- LP e_inv_expect[] = {
- { 0.00179663056846135222, 0.000904369476631838518},
- { 0.00179663056846135222, -0.000904369476631838518},
- {-0.00179663056846135222, 0.000904369476631838518},
- {-0.00179663056846135222, -0.000904369476631838518},
- };
-
- LP s_inv_expect[] = {
- { 0.0017904931100023887, 0.000895246554454779222},
- { 0.0017904931100023887, -0.000895246554454779222},
- {-0.0017904931100023887, 0.000895246554454779222},
- {-0.0017904931100023887, -0.000895246554454779222},
- };
-
- 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_poly_selftest (void) {return 10000;}