diff options
Diffstat (limited to 'src/PJ_bipc.c')
| -rw-r--r-- | src/PJ_bipc.c | 57 |
1 files changed, 0 insertions, 57 deletions
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 |
