aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_lsat.c
diff options
context:
space:
mode:
authorThomas Knudsen <thokn@sdfe.dk>2017-11-12 05:27:30 +0100
committerThomas Knudsen <thokn@sdfe.dk>2017-11-12 05:27:30 +0100
commit48e476b968ce7cc90234b529d6af1265902be623 (patch)
tree6d67be8047b6ab274ad26b36ec7b8b262cb3f096 /src/PJ_lsat.c
parent98dd8d5b6c0f24b8e2be1a8e77e4dfac72a2dc50 (diff)
downloadPROJ-48e476b968ce7cc90234b529d6af1265902be623.tar.gz
PROJ-48e476b968ce7cc90234b529d6af1265902be623.zip
Remove selftests from projection files starting with l, m
Diffstat (limited to 'src/PJ_lsat.c')
-rw-r--r--src/PJ_lsat.c44
1 files changed, 1 insertions, 43 deletions
diff --git a/src/PJ_lsat.c b/src/PJ_lsat.c
index 7319bee7..b3c36fe8 100644
--- a/src/PJ_lsat.c
+++ b/src/PJ_lsat.c
@@ -209,46 +209,4 @@ PJ *PROJECTION(lsat) {
}
-#ifndef PJ_SELFTEST
-int pj_lsat_selftest (void) {return 0;}
-#else
-
-int pj_lsat_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char e_args[] = {"+proj=lsat +ellps=GRS80 +lat_1=0.5 +lat_2=2 +lsat=1 +path=2"};
-
- LP fwd_in[] = {
- { 2, 1},
- { 2,-1},
- {-2, 1},
- {-2,-1}
- };
-
- XY e_fwd_expect[] = {
- {18241950.01455855, 9998256.83982293494},
- {18746856.2533194572, 10215761.669925211},
- {18565503.6836331636, 9085039.14672705345},
- {19019696.9020289108, 9247763.0394328218},
- };
-
- XY inv_in[] = {
- { 200, 100},
- { 200,-100},
- {-200, 100},
- {-200,-100}
- };
-
- LP e_inv_expect[] = {
- {126.000423834530011, 0.00172378224025701425},
- {126.002213738256714, 0.00188015467480917966},
- {126.000734468914601, -0.00188015467480917966},
- {126.002524372641304, -0.00172378224025701425},
- };
-
- 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_lsat_selftest (void) {return 10000;}