diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-02-20 18:04:35 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-02-20 20:32:17 +0100 |
| commit | 94578ea8ff38f4bc6b1f6f52b80ecf7359f5dfc2 (patch) | |
| tree | 1ef7f51339a7dc8c2e1040ddbf4d13aca6cc879a /test/unit/test_c_api.cpp | |
| parent | 374cc258510428fa3bfb9d8ca61ad7ac83a00db1 (diff) | |
| download | PROJ-94578ea8ff38f4bc6b1f6f52b80ecf7359f5dfc2.tar.gz PROJ-94578ea8ff38f4bc6b1f6f52b80ecf7359f5dfc2.zip | |
CoordinateOperation: add a hasBallparkTransformation() method that can be used to know if it includes a very approximative transformation term
Diffstat (limited to 'test/unit/test_c_api.cpp')
| -rw-r--r-- | test/unit/test_c_api.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unit/test_c_api.cpp b/test/unit/test_c_api.cpp index 69472a58..7682c072 100644 --- a/test/unit/test_c_api.cpp +++ b/test/unit/test_c_api.cpp @@ -1345,6 +1345,7 @@ TEST_F(CApi, proj_create_operations) { auto op = proj_list_get(m_ctxt, res, 0); ASSERT_NE(op, nullptr); ObjectKeeper keeper_op(op); + EXPECT_FALSE(proj_coordoperation_has_ballpark_transformation(m_ctxt, op)); EXPECT_EQ(proj_get_name(op), std::string("NAD27 to NAD83 (3)")); } @@ -1401,8 +1402,9 @@ TEST_F(CApi, proj_create_operations_with_pivot) { ASSERT_NE(op, nullptr); ObjectKeeper keeper_op(op); - EXPECT_EQ(proj_get_name(op), - std::string("Null geographic offset from WGS 84 to JGD2011")); + EXPECT_EQ( + proj_get_name(op), + std::string("Ballpark geographic offset from WGS 84 to JGD2011")); } // Restrict pivot to Tokyo CRS |
