aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_aea.c
diff options
context:
space:
mode:
authorThomas Knudsen <thokn@sdfe.dk>2017-10-12 20:58:47 +0200
committerThomas Knudsen <thokn@sdfe.dk>2017-10-12 20:58:47 +0200
commitb6e37b99b1f7d07de691f428e8d04dbd5f8b3caa (patch)
tree03a5d254971e3d7858a628152f0fa5b1735f093f /src/PJ_aea.c
parentde5059b4efb088f5b88ef73878bda3fc8b6609d0 (diff)
downloadPROJ-b6e37b99b1f7d07de691f428e8d04dbd5f8b3caa.tar.gz
PROJ-b6e37b99b1f7d07de691f428e8d04dbd5f8b3caa.zip
Remove first batch of internal self tests, now moved to builtins.gie:
All projections starting with "a". Replace with stubs returning 10000. The two PJ_apply_?gridhift.c files have not been touched
Diffstat (limited to 'src/PJ_aea.c')
-rw-r--r--src/PJ_aea.c116
1 files changed, 1 insertions, 115 deletions
diff --git a/src/PJ_aea.c b/src/PJ_aea.c
index 228d3afd..5e8e3333 100644
--- a/src/PJ_aea.c
+++ b/src/PJ_aea.c
@@ -218,119 +218,5 @@ PJ *PROJECTION(leac) {
}
-#ifndef PJ_SELFTEST
-int pj_aea_selftest (void) {return 10000;}
-#else
-
-int pj_aea_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char e_args[] = {"+proj=aea +ellps=GRS80 +lat_1=0 +lat_2=2"};
- char s_args[] = {"+proj=aea +R=6400000 +lat_1=0 +lat_2=2"};
-
- LP fwd_in[] = {
- { 2, 1},
- { 2,-1},
- {-2, 1},
- {-2,-1}
- };
-
- XY e_fwd_expect[] = {
- {222571.60875710563, 110653.32674302977},
- {222706.30650839131, -110484.26714439997},
- {-222571.60875710563, 110653.32674302977},
- {-222706.30650839131, -110484.26714439997},
- };
-
- XY s_fwd_expect[] = {
- {223334.08517088494, 111780.43188447191},
- {223470.15499168713, -111610.33943099028},
- {-223334.08517088494, 111780.43188447191},
- {-223470.15499168713, -111610.33943099028},
- };
-
- XY inv_in[] = {
- { 200, 100},
- { 200,-100},
- {-200, 100},
- {-200,-100}
- };
-
- LP e_inv_expect[] = {
- {0.0017966310597749514, 0.00090436885862202158},
- {0.0017966300767030448, -0.00090437009538581453},
- {-0.0017966310597749514, 0.00090436885862202158},
- {-0.0017966300767030448, -0.00090437009538581453},
- };
-
- LP s_inv_expect[] = {
- {0.0017904935979658752, 0.00089524594491375306},
- {0.0017904926216016812, -0.00089524716502493225},
- {-0.0017904935979658752, 0.00089524594491375306},
- {-0.0017904926216016812, -0.00089524716502493225},
- };
- 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
-
-
-
-#ifndef PJ_SELFTEST
+int pj_aea_selftest (void) {return 10000;}
int pj_leac_selftest (void) {return 10000;}
-#else
-
-int pj_leac_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char e_args[] = {"+proj=leac +ellps=GRS80 +lat_1=0 +lat_2=2"};
- char s_args[] = {"+proj=leac +R=6400000 +lat_1=0 +lat_2=2"};
-
- LP fwd_in[] = {
- { 2, 1},
- { 2,-1},
- {-2, 1},
- {-2,-1}
- };
-
- XY e_fwd_expect[] = {
- {220685.14054297868, 112983.50088939646},
- {224553.31227982609, -108128.63674487274},
- {-220685.14054297868, 112983.50088939646},
- {-224553.31227982609, -108128.63674487274},
- };
-
- XY s_fwd_expect[] = {
- {221432.86859285168, 114119.45452653214},
- {225331.72412711097, -109245.82943505641},
- {-221432.86859285168, 114119.45452653214},
- {-225331.72412711097, -109245.82943505641},
- };
-
- XY inv_in[] = {
- { 200, 100},
- { 200,-100},
- {-200, 100},
- {-200,-100}
- };
-
- LP e_inv_expect[] = {
- {0.0017966446840328458, 0.00090435171340223211},
- {0.0017966164523713021, -0.00090438724081843625},
- {-0.0017966446840328458, 0.00090435171340223211},
- {-0.0017966164523713021, -0.00090438724081843625},
- };
-
- LP s_inv_expect[] = {
- {0.0017905070979748127, 0.00089522906964877795},
- {0.001790479121519977, -0.00089526404022281043},
- {-0.0017905070979748127, 0.00089522906964877795},
- {-0.001790479121519977, -0.00089526404022281043},
- };
-
- 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