diff options
| author | Thomas Knudsen <busstoptaktik@users.noreply.github.com> | 2017-10-20 13:10:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-20 13:10:28 +0200 |
| commit | 81bf085dce5ce6eac59835cd45dba6aecdb1a8e6 (patch) | |
| tree | 4a1cd0a8c25cd6161c7ab9767fdbcbebd35216c3 /src/PJ_eqdc.c | |
| parent | 33c3549fa7a26d86388520c91b7f0fa38d51bfa1 (diff) | |
| download | PROJ-81bf085dce5ce6eac59835cd45dba6aecdb1a8e6.tar.gz PROJ-81bf085dce5ce6eac59835cd45dba6aecdb1a8e6.zip | |
Remove superfluous internal selftests from projection files matching patterns PJ_d....c and PJ_e....c (#615)
Diffstat (limited to 'src/PJ_eqdc.c')
| -rw-r--r-- | src/PJ_eqdc.c | 59 |
1 files changed, 1 insertions, 58 deletions
diff --git a/src/PJ_eqdc.c b/src/PJ_eqdc.c index cb7e7f10..6e9d2c75 100644 --- a/src/PJ_eqdc.c +++ b/src/PJ_eqdc.c @@ -130,61 +130,4 @@ PJ *PROJECTION(eqdc) { } -#ifndef PJ_SELFTEST -int pj_eqdc_selftest (void) {return 0;} -#else - -int pj_eqdc_selftest (void) { - double tolerance_lp = 1e-10; - double tolerance_xy = 1e-7; - - char e_args[] = {"+proj=eqdc +ellps=GRS80 +lat_1=0.5 +lat_2=2"}; - char s_args[] = {"+proj=eqdc +R=6400000 +lat_1=0.5 +lat_2=2"}; - - LP fwd_in[] = { - { 2, 1}, - { 2,-1}, - {-2, 1}, - {-2,-1} - }; - - XY e_fwd_expect[] = { - { 222588.440269285755, 110659.134907347048}, - { 222756.836702042434, -110489.578087220681}, - {-222588.440269285755, 110659.134907347048}, - {-222756.836702042434, -110489.578087220681}, - }; - - XY s_fwd_expect[] = { - { 223351.088175113517, 111786.108747173785}, - { 223521.200266735133, -111615.970741240744}, - {-223351.088175113517, 111786.108747173785}, - {-223521.200266735133, -111615.970741240744}, - }; - - XY inv_in[] = { - { 200, 100}, - { 200,-100}, - {-200, 100}, - {-200,-100} - }; - - LP e_inv_expect[] = { - { 0.00179635944879094839, 0.000904368858588402644}, - { 0.00179635822020772734, -0.000904370095529954975}, - {-0.00179635944879094839, 0.000904368858588402644}, - {-0.00179635822020772734, -0.000904370095529954975}, - }; - - LP s_inv_expect[] = { - { 0.0017902210900486641, 0.000895245944814909169}, - { 0.00179021986984890255, -0.000895247165333684842}, - {-0.0017902210900486641, 0.000895245944814909169}, - {-0.00179021986984890255, -0.000895247165333684842}, - }; - - 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_eqdc_selftest (void) {return 10000;} |
