diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2018-12-27 22:16:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-27 22:16:10 +0100 |
| commit | 123011447a2d7d25041cc3e466408a0d81bb4d3b (patch) | |
| tree | 450cb1f8db7247c224fc309465cea0f22b045bc8 /test/unit/gie_self_tests.cpp | |
| parent | 81ec8c0b58d66333fccd3703dab62a11132a0331 (diff) | |
| parent | 6bb14fa874562eb4879a3b80b51b22cd2add058e (diff) | |
| download | PROJ-123011447a2d7d25041cc3e466408a0d81bb4d3b.tar.gz PROJ-123011447a2d7d25041cc3e466408a0d81bb4d3b.zip | |
Merge pull request #1210 from rouault/remove_proj_defs_dat
Remove proj_def.dat (#201)
Diffstat (limited to 'test/unit/gie_self_tests.cpp')
| -rw-r--r-- | test/unit/gie_self_tests.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/unit/gie_self_tests.cpp b/test/unit/gie_self_tests.cpp index b7af926b..9ff7a278 100644 --- a/test/unit/gie_self_tests.cpp +++ b/test/unit/gie_self_tests.cpp @@ -405,7 +405,7 @@ TEST(gie, info_functions) { ASSERT_NEAR(-2.0, proj_dmstor(&buf[0], NULL), 1e-7); /* test proj_derivatives_retrieve() and proj_factors_retrieve() */ - P = proj_create(PJ_DEFAULT_CTX, "+proj=merc"); + P = proj_create(PJ_DEFAULT_CTX, "+proj=merc +ellps=WGS84"); a = proj_coord(0, 0, 0, 0); a.lp.lam = proj_torad(12); a.lp.phi = proj_torad(55); @@ -488,7 +488,7 @@ TEST(gie, io_predicates) { " +rx=-0.00039 +ry=0.00080 +rz=-0.00114" " +dx=-0.0029 +dy=-0.0002 +dz=-0.0006 +ds=0.00001" " +drx=-0.00011 +dry=-0.00019 +drz=0.00007" - " +t_epoch=1988.0 +convention=coordinate_frame +no_defs"); + " +t_epoch=1988.0 +convention=coordinate_frame"); ASSERT_TRUE(P != nullptr); ASSERT_FALSE(proj_angular_input(P, PJ_FWD)); ASSERT_FALSE(proj_angular_input(P, PJ_INV)); @@ -500,14 +500,13 @@ TEST(gie, io_predicates) { ASSERT_FALSE(proj_angular_output(P, PJ_FWD)); ASSERT_FALSE(proj_angular_output(P, PJ_INV)); - /* We specified "no_defs" but didn't give any ellipsoid info */ - /* pj_init_ctx should default to WGS84 */ + /* pj_init_ctx should default to GRS80 */ ASSERT_EQ(P->a, 6378137.0); - ASSERT_EQ(P->f, 1.0 / 298.257223563); + ASSERT_EQ(P->f, 1.0 / 298.257222101); proj_destroy(P); /* Test that pj_fwd* and pj_inv* returns NaNs when receiving NaN input */ - P = proj_create(PJ_DEFAULT_CTX, "+proj=merc"); + P = proj_create(PJ_DEFAULT_CTX, "+proj=merc +ellps=WGS84"); ASSERT_TRUE(P != nullptr); auto a = proj_coord(NAN, NAN, NAN, NAN); a = proj_trans(P, PJ_FWD, a); |
