aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_qsc.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_qsc.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_qsc.c')
-rw-r--r--src/PJ_qsc.c59
1 files changed, 1 insertions, 58 deletions
diff --git a/src/PJ_qsc.c b/src/PJ_qsc.c
index f30a7048..c8079f9e 100644
--- a/src/PJ_qsc.c
+++ b/src/PJ_qsc.c
@@ -399,61 +399,4 @@ PJ *PROJECTION(qsc) {
}
-#ifndef PJ_SELFTEST
-int pj_qsc_selftest (void) {return 0;}
-#else
-
-int pj_qsc_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char e_args[] = {"+proj=qsc +ellps=GRS80 +lat_1=0.5 +lat_2=2"};
- char s_args[] = {"+proj=qsc +R=6400000 +lat_1=0.5 +lat_2=2"};
-
- LP fwd_in[] = {
- { 2, 1},
- { 2,-1},
- {-2, 1},
- {-2,-1}
- };
-
- XY e_fwd_expect[] = {
- { 304638.450843852363, 164123.870923793991},
- { 304638.450843852363, -164123.870923793991},
- {-304638.450843852363, 164123.870923793962},
- {-304638.450843852421, -164123.870923793904},
- };
-
- XY s_fwd_expect[] = {
- { 305863.792402890511, 165827.722754715243},
- { 305863.792402890511, -165827.722754715243},
- {-305863.792402890511, 165827.722754715243},
- {-305863.792402890569, -165827.722754715156},
- };
-
- XY inv_in[] = {
- { 200, 100},
- { 200,-100},
- {-200, 100},
- {-200,-100}
- };
-
- LP e_inv_expect[] = {
- { 0.00132134098471627126, 0.000610652900922527926},
- { 0.00132134098471627126, -0.000610652900922527926},
- {-0.00132134098471627126, 0.000610652900922527926},
- {-0.00132134098471627126, -0.000610652900922527926},
- };
-
- LP s_inv_expect[] = {
- { 0.00131682718763827234, 0.000604493198178676161},
- { 0.00131682718763827234, -0.000604493198178676161},
- {-0.00131682718763827234, 0.000604493198178676161},
- {-0.00131682718763827234, -0.000604493198178676161},
- };
-
- 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_qsc_selftest (void) {return 10000;}