aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_c_api.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2018-12-14 00:06:01 +0100
committerEven Rouault <even.rouault@spatialys.com>2018-12-14 00:06:01 +0100
commit6aff5d7b0e1061dbd7b45ae032daea087bf8e1bc (patch)
tree7193ddb4bb589f16fd71cb0bb3a7fde0783faeeb /test/unit/test_c_api.cpp
parent17b8566f303e0585d7cd775afd5d39da8058fdc3 (diff)
downloadPROJ-6aff5d7b0e1061dbd7b45ae032daea087bf8e1bc.tar.gz
PROJ-6aff5d7b0e1061dbd7b45ae032daea087bf8e1bc.zip
C API: add proj_coordoperation_get_towgs84_values()
Diffstat (limited to 'test/unit/test_c_api.cpp')
-rw-r--r--test/unit/test_c_api.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/test_c_api.cpp b/test/unit/test_c_api.cpp
index f1cf3417..c8086684 100644
--- a/test/unit/test_c_api.cpp
+++ b/test/unit/test_c_api.cpp
@@ -426,6 +426,13 @@ TEST_F(CApi, proj_obj_crs_create_bound_crs_to_WGS84) {
ObjectKeeper keeper_transf(transf);
ASSERT_NE(transf, nullptr);
+ std::vector<double> values(7, 0);
+ EXPECT_TRUE(proj_coordoperation_get_towgs84_values(m_ctxt, transf,
+ values.data(), 7, true));
+ auto expected = std::vector<double>{2.329, -147.042, -92.08, -0.309,
+ 0.325, 0.497, 5.69};
+ EXPECT_EQ(values, expected);
+
auto res2 =
proj_obj_crs_create_bound_crs(m_ctxt, base_crs, hub_crs, transf);
ObjectKeeper keeper_res2(res2);