aboutsummaryrefslogtreecommitdiff
path: root/src
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
parent3ef083767eaf975399243246605fddc40cc097f9 (diff)
downloadPROJ-3cbef771c6f2012e82ce9c8640264e6a1f86cc77.tar.gz
PROJ-3cbef771c6f2012e82ce9c8640264e6a1f86cc77.zip
remove internal seftests from projections starting with a 'b'
Diffstat (limited to 'src')
-rw-r--r--src/PJ_bacon.c83
-rw-r--r--src/PJ_bipc.c57
-rw-r--r--src/PJ_boggs.c26
-rw-r--r--src/PJ_bonne.c56
4 files changed, 1 insertions, 221 deletions
diff --git a/src/PJ_bacon.c b/src/PJ_bacon.c
index cb7286be..13fb0044 100644
--- a/src/PJ_bacon.c
+++ b/src/PJ_bacon.c
@@ -77,89 +77,6 @@ PJ *PROJECTION(ortel) {
}
-#ifndef PJ_SELFTEST
int pj_bacon_selftest (void) {return 0;}
-#else
-int pj_bacon_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char s_args[] = {"+proj=bacon +a=6400000 +lat_1=0 +lat_2=2"};
-
- LP fwd_in[] = {
- { 2, 1},
- { 2,-1},
- {-2, 1},
- {-2,-1}
- };
-
- XY s_fwd_expect[] = {
- {223334.13255596498, 175450.72592266591},
- {223334.13255596498, -175450.72592266591},
- {-223334.13255596498, 175450.72592266591},
- {-223334.13255596498, -175450.72592266591},
- };
-
- return pj_generic_selftest (0, s_args, tolerance_xy, tolerance_lp, 4, 0, fwd_in, 0, s_fwd_expect, 0, 0, 0);
-}
-#endif
-
-
-
-
-#ifndef PJ_SELFTEST
int pj_apian_selftest (void) {return 0;}
-#else
-int pj_apian_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char s_args[] = {"+proj=apian +a=6400000 +lat_1=0 +lat_2=2"};
-
- LP fwd_in[] = {
- { 2, 1},
- { 2,-1},
- {-2, 1},
- {-2,-1}
- };
-
- XY s_fwd_expect[] = {
- { 223374.57735525275, 111701.07212763709},
- { 223374.57735525275, -111701.07212763709},
- {-223374.57735525275, 111701.07212763709},
- {-223374.57735525275, -111701.07212763709},
- };
-
- return pj_generic_selftest (0, s_args, tolerance_xy, tolerance_lp, 4, 0, fwd_in, 0, s_fwd_expect, 0, 0, 0);
-}
-#endif
-
-
-
-
-#ifndef PJ_SELFTEST
int pj_ortel_selftest (void) {return 0;}
-#else
-int pj_ortel_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char s_args[] = {"+proj=ortel +a=6400000 +lat_1=0 +lat_2=2"};
-
- LP fwd_in[] = {
- { 2, 1},
- { 2,-1},
- {-2, 1},
- {-2,-1}
- };
-
- XY s_fwd_expect[] = {
- { 223374.57735525275, 111701.07212763709},
- { 223374.57735525275, -111701.07212763709},
- {-223374.57735525275, 111701.07212763709},
- {-223374.57735525275, -111701.07212763709},
- };
- return pj_generic_selftest (0, s_args, tolerance_xy, tolerance_lp, 4, 0, fwd_in, 0, s_fwd_expect, 0, 0, 0);
-}
-#endif
-
diff --git a/src/PJ_bipc.c b/src/PJ_bipc.c
index 0019d614..ce726c06 100644
--- a/src/PJ_bipc.c
+++ b/src/PJ_bipc.c
@@ -171,61 +171,4 @@ PJ *PROJECTION(bipc) {
}
-#ifndef PJ_SELFTEST
int pj_bipc_selftest (void) {return 0;}
-#else
-
-int pj_bipc_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char e_args[] = {"+proj=bipc +ellps=GRS80 +lat_1=0.5 +lat_2=2"};
- char s_args[] = {"+proj=bipc +a=6400000 +lat_1=0.5 +lat_2=2"};
-
- LP fwd_in[] = {
- { 2, 1},
- { 2,-1},
- {-2, 1},
- {-2,-1}
- };
-
- XY e_fwd_expect[] = {
- {2452160.2177257561, -14548450.759654747},
- {2447915.213725341, -14763427.21279873},
- {2021695.5229349085, -14540413.695283702},
- {2018090.5030046992, -14755620.651414108},
- };
-
- XY s_fwd_expect[] = {
- {2460565.7409749646, -14598319.9893308},
- {2456306.1859352002, -14814033.339502094},
- {2028625.4978190989, -14590255.375482792},
- {2025008.1205891429, -14806200.018759441},
- };
-
- XY inv_in[] = {
- { 200, 100},
- { 200,-100},
- {-200, 100},
- {-200,-100}
- };
-
- LP e_inv_expect[] = {
- {-73.038700284978702, 17.248118466239116},
- {-73.03730373933017, 17.249414978178777},
- {-73.03589317304332, 17.245536403008771},
- {-73.034496627213585, 17.246832895573739},
- };
-
- LP s_inv_expect[] = {
- {-73.038693104942126, 17.248116270440242},
- {-73.037301330021322, 17.24940835333777},
- {-73.035895582251086, 17.245543027866539},
- {-73.034503807150301, 17.246835091521532},
- };
-
- 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
diff --git a/src/PJ_boggs.c b/src/PJ_boggs.c
index e6efd7d3..5e95e7f8 100644
--- a/src/PJ_boggs.c
+++ b/src/PJ_boggs.c
@@ -41,29 +41,5 @@ PJ *PROJECTION(boggs) {
return P;
}
-#ifndef PJ_SELFTEST
-int pj_boggs_selftest (void) {return 0;}
-#else
-int pj_boggs_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char s_args[] = {"+proj=boggs +a=6400000 +lat_1=0 +lat_2=2"};
-
- LP fwd_in[] = {
- { 2, 1},
- { 2,-1},
- {-2, 1},
- {-2,-1}
- };
- XY s_fwd_expect[] = {
- { 211949.70080818201, 117720.99830541089},
- { 211949.70080818201, -117720.99830541089},
- {-211949.70080818201, 117720.99830541089},
- {-211949.70080818201, -117720.99830541089},
- };
-
- return pj_generic_selftest (0, s_args, tolerance_xy, tolerance_lp, 4, 0, fwd_in, 0, s_fwd_expect, 0, 0, 0);
-}
-#endif
+int pj_boggs_selftest (void) {return 0;}
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