aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_putp5.c
diff options
context:
space:
mode:
authorThomas Knudsen <thokn@sdfe.dk>2017-11-12 06:05:22 +0100
committerThomas Knudsen <thokn@sdfe.dk>2017-11-12 06:05:22 +0100
commit4498951c4e5169e922b1640cfec7b3fd9e9c47ca (patch)
tree47c5f86ac8d2054c2fcd7c337b1c392c5de81afd /src/PJ_putp5.c
parent98dd8d5b6c0f24b8e2be1a8e77e4dfac72a2dc50 (diff)
downloadPROJ-4498951c4e5169e922b1640cfec7b3fd9e9c47ca.tar.gz
PROJ-4498951c4e5169e922b1640cfec7b3fd9e9c47ca.zip
Remove selftests from projection files starting with n,o,p,q
Diffstat (limited to 'src/PJ_putp5.c')
-rw-r--r--src/PJ_putp5.c88
1 files changed, 2 insertions, 86 deletions
diff --git a/src/PJ_putp5.c b/src/PJ_putp5.c
index f8b431b1..2a847fa7 100644
--- a/src/PJ_putp5.c
+++ b/src/PJ_putp5.c
@@ -69,89 +69,5 @@ PJ *PROJECTION(putp5p) {
return P;
}
-#ifndef PJ_SELFTEST
-int pj_putp5_selftest (void) {return 0;}
-#else
-
-int pj_putp5_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char s_args[] = {"+proj=putp5 +a=6400000 +lat_1=0.5 +lat_2=2"};
-
- LP fwd_in[] = {
- { 2, 1},
- { 2,-1},
- {-2, 1},
- {-2,-1}
- };
-
- XY s_fwd_expect[] = {
- { 226367.21338056153, 113204.56855847509},
- { 226367.21338056153, -113204.56855847509},
- {-226367.21338056153, 113204.56855847509},
- {-226367.21338056153, -113204.56855847509},
- };
-
- XY inv_in[] = {
- { 200, 100},
- { 200,-100},
- {-200, 100},
- {-200,-100}
- };
-
- LP s_inv_expect[] = {
- { 0.00176671315102969553, 0.000883356575387199546},
- { 0.00176671315102969553, -0.000883356575387199546},
- {-0.00176671315102969553, 0.000883356575387199546},
- {-0.00176671315102969553, -0.000883356575387199546},
- };
-
- return pj_generic_selftest (0, s_args, tolerance_xy, tolerance_lp, 4, 4, fwd_in, 0, s_fwd_expect, inv_in, 0, s_inv_expect);
-}
-
-#endif
-
-
-#ifndef PJ_SELFTEST
-int pj_putp5p_selftest (void) {return 0;}
-#else
-
-int pj_putp5p_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char s_args[] = {"+proj=putp5p +a=6400000 +lat_1=0.5 +lat_2=2"};
-
- LP fwd_in[] = {
- { 2, 1},
- { 2,-1},
- {-2, 1},
- {-2,-1}
- };
-
- XY s_fwd_expect[] = {
- { 226388.175248755841, 113204.56855847509},
- { 226388.175248755841, -113204.56855847509},
- {-226388.175248755841, 113204.56855847509},
- {-226388.175248755841, -113204.56855847509},
- };
-
- XY inv_in[] = {
- { 200, 100},
- { 200,-100},
- {-200, 100},
- {-200,-100}
- };
-
- LP s_inv_expect[] = {
- { 0.00176671315090204742, 0.000883356575387199546},
- { 0.00176671315090204742, -0.000883356575387199546},
- {-0.00176671315090204742, 0.000883356575387199546},
- {-0.00176671315090204742, -0.000883356575387199546},
- };
-
- return pj_generic_selftest (0, s_args, tolerance_xy, tolerance_lp, 4, 4, fwd_in, 0, s_fwd_expect, inv_in, 0, s_inv_expect);
-}
-
-#endif
+int pj_putp5_selftest (void) {return 10000;}
+int pj_putp5p_selftest (void) {return 10000;}