aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_bonne.c
diff options
context:
space:
mode:
authorThomas Knudsen <thokn@sdfe.dk>2017-10-19 19:01:17 +0200
committerThomas Knudsen <thokn@sdfe.dk>2017-10-19 19:01:17 +0200
commit3cbef771c6f2012e82ce9c8640264e6a1f86cc77 (patch)
tree0ed59a43814ae50561a233ed2b4a08b41d09025f /src/PJ_bonne.c
parent3ef083767eaf975399243246605fddc40cc097f9 (diff)
downloadPROJ-3cbef771c6f2012e82ce9c8640264e6a1f86cc77.tar.gz
PROJ-3cbef771c6f2012e82ce9c8640264e6a1f86cc77.zip
remove internal seftests from projections starting with a 'b'
Diffstat (limited to 'src/PJ_bonne.c')
-rw-r--r--src/PJ_bonne.c56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/PJ_bonne.c b/src/PJ_bonne.c
index 711e234f..736ab68f 100644
--- a/src/PJ_bonne.c
+++ b/src/PJ_bonne.c
@@ -130,60 +130,4 @@ PJ *PROJECTION(bonne) {
}
-#ifndef PJ_SELFTEST
int pj_bonne_selftest (void) {return 0;}
-#else
-int pj_bonne_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char e_args[] = {"+proj=bonne +ellps=GRS80 +lat_1=0.5 +lat_2=2"};
- char s_args[] = {"+proj=bonne +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.29609715697, 55321.139565494814},
- { 222605.29609923941, -165827.64779905154},
- {-222605.29609715697, 55321.139565494814},
- {-222605.29609923941, -165827.64779905154},
- };
-
- XY s_fwd_expect[] = {
- { 223368.11557252839, 55884.555246393575},
- { 223368.11557463196, -167517.59936969393},
- {-223368.11557252839, 55884.555246393575},
- {-223368.11557463196, -167517.59936969393},
- };
-
- XY inv_in[] = {
- { 200, 100},
- { 200,-100},
- {-200, 100},
- {-200,-100}
- };
-
- LP e_inv_expect[] = {
- { 0.0017966987691132891, 0.50090436853737497},
- { 0.0017966982774478867, 0.4990956309655612},
- {-0.0017966987691132891, 0.50090436853737497},
- {-0.0017966982774478867, 0.4990956309655612},
- };
-
- LP s_inv_expect[] = {
- { 0.0017905615332457991, 0.50089524631087834},
- { 0.0017905610449335603, 0.49910475320072978},
- {-0.0017905615332457991, 0.50089524631087834},
- {-0.0017905610449335603, 0.49910475320072978},
- };
-
- 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