aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_cass.c
diff options
context:
space:
mode:
authorThomas Knudsen <busstoptaktik@users.noreply.github.com>2017-10-19 21:17:14 +0200
committerGitHub <noreply@github.com>2017-10-19 21:17:14 +0200
commita69372acdb74476a6029d4bebb920e5d83c18913 (patch)
tree7e1fe044e570beeac12b780d80d72c4b6bf4f916 /src/PJ_cass.c
parent5812dd6b44a2252e80b2ff96a9a33e796113d993 (diff)
parent60d1592843f894d4967bccc9a22b8521b5ade86d (diff)
downloadPROJ-a69372acdb74476a6029d4bebb920e5d83c18913.tar.gz
PROJ-a69372acdb74476a6029d4bebb920e5d83c18913.zip
Merge pull request #613 from busstoptaktik/third-selftest-removal
remove internal seftests from projections starting with a 'c' (excluding PJ_cart.c)
Diffstat (limited to 'src/PJ_cass.c')
-rw-r--r--src/PJ_cass.c57
1 files changed, 1 insertions, 56 deletions
diff --git a/src/PJ_cass.c b/src/PJ_cass.c
index 6955146e..603ce013 100644
--- a/src/PJ_cass.c
+++ b/src/PJ_cass.c
@@ -118,59 +118,4 @@ PJ *PROJECTION(cass) {
}
-#ifndef PJ_SELFTEST
-int pj_cass_selftest (void) {return 0;}
-#else
-
-int pj_cass_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char e_args[] = {"+proj=cass +ellps=GRS80 +lat_1=0.5 +lat_2=2"};
- char s_args[] = {"+proj=cass +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.28577699114, 110642.22925399939},
- { 222605.28577699114, -110642.22925399939},
- {-222605.28577699114, 110642.22925399939},
- {-222605.28577699114, -110642.22925399939},
- };
-
- XY s_fwd_expect[] = {
- { 223368.10520348375, 111769.14504058579},
- { 223368.10520348375, -111769.14504058579},
- {-223368.10520348375, 111769.14504058579},
- {-223368.10520348375, -111769.14504058579},
- };
-
- XY inv_in[] = {
- { 200, 100},
- { 200,-100},
- {-200, 100},
- {-200,-100}
- };
-
- LP e_inv_expect[] = {
- { 0.0017966305684613522, 0.00090436947663183841},
- { 0.0017966305684613522, -0.00090436947663183841},
- {-0.0017966305684613522, 0.00090436947663183841},
- {-0.0017966305684613522, -0.00090436947663183841},
- };
-
- LP s_inv_expect[] = {
- { 0.0017904931100023887, 0.00089524655445477922},
- { 0.0017904931100023887, -0.00089524655445477922},
- {-0.0017904931100023887, 0.00089524655445477922},
- {-0.0017904931100023887, -0.00089524655445477922},
- };
-
- 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_cass_selftest (void) {return 10000;}