aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_c_api.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2018-12-13 15:32:24 +0100
committerEven Rouault <even.rouault@spatialys.com>2018-12-13 15:32:24 +0100
commit6cac8e03056db41a8314756c16507ef39bd78e0a (patch)
tree289ef385e8679bec6bd3ffa95926bdf28fab08d4 /test/unit/test_c_api.cpp
parent990d88b09839876598c954230ca66fb2604f7545 (diff)
downloadPROJ-6cac8e03056db41a8314756c16507ef39bd78e0a.tar.gz
PROJ-6cac8e03056db41a8314756c16507ef39bd78e0a.zip
Add helpers to create polar cartesian CS
Diffstat (limited to 'test/unit/test_c_api.cpp')
-rw-r--r--test/unit/test_c_api.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/unit/test_c_api.cpp b/test/unit/test_c_api.cpp
index 394e87ca..d53f38fd 100644
--- a/test/unit/test_c_api.cpp
+++ b/test/unit/test_c_api.cpp
@@ -2666,4 +2666,35 @@ TEST_F(CApi, proj_uom_get_info_from_database) {
}
}
+// ---------------------------------------------------------------------------
+
+TEST_F(CApi, proj_obj_create_cartesian_2D_cs) {
+ {
+ auto cs = proj_obj_create_cartesian_2D_cs(
+ m_ctxt, PJ_CART2D_EASTING_NORTHING, nullptr, 0);
+ ObjectKeeper keeper_cs(cs);
+ ASSERT_NE(cs, nullptr);
+ }
+ {
+ auto cs = proj_obj_create_cartesian_2D_cs(
+ m_ctxt, PJ_CART2D_NORTHING_EASTING, nullptr, 0);
+ ObjectKeeper keeper_cs(cs);
+ ASSERT_NE(cs, nullptr);
+ }
+ {
+ auto cs = proj_obj_create_cartesian_2D_cs(
+ m_ctxt, PJ_CART2D_NORTH_POLE_EASTING_SOUTH_NORTHING_SOUTH, nullptr,
+ 0);
+ ObjectKeeper keeper_cs(cs);
+ ASSERT_NE(cs, nullptr);
+ }
+ {
+ auto cs = proj_obj_create_cartesian_2D_cs(
+ m_ctxt, PJ_CART2D_SOUTH_POLE_EASTING_NORTH_NORTHING_NORTH, nullptr,
+ 0);
+ ObjectKeeper keeper_cs(cs);
+ ASSERT_NE(cs, nullptr);
+ }
+}
+
} // namespace