aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit/test_io.cpp14
-rw-r--r--test/unit/test_operation.cpp6
2 files changed, 16 insertions, 4 deletions
diff --git a/test/unit/test_io.cpp b/test/unit/test_io.cpp
index 2b5eeffc..43b74fd8 100644
--- a/test/unit/test_io.cpp
+++ b/test/unit/test_io.cpp
@@ -2280,6 +2280,20 @@ TEST(wkt_parse, COORDINATEOPERATION) {
// ---------------------------------------------------------------------------
+TEST(wkt_parse, conversion_proj_based) {
+
+ auto wkt = "CONVERSION[\"PROJ-based coordinate operation\",\n"
+ " METHOD[\"PROJ-based operation method: +proj=merc\"]]";
+
+ auto obj = WKTParser().createFromWKT(wkt);
+ auto transf = nn_dynamic_pointer_cast<SingleOperation>(obj);
+ ASSERT_TRUE(transf != nullptr);
+ EXPECT_EQ(transf->exportToPROJString(PROJStringFormatter::create().get()),
+ "+proj=merc");
+}
+
+// ---------------------------------------------------------------------------
+
TEST(wkt_parse, CONCATENATEDOPERATION) {
auto transf_1 = Transformation::create(
diff --git a/test/unit/test_operation.cpp b/test/unit/test_operation.cpp
index d3f05548..bdadd830 100644
--- a/test/unit/test_operation.cpp
+++ b/test/unit/test_operation.cpp
@@ -4099,8 +4099,7 @@ TEST(operation, PROJ_based) {
EXPECT_EQ(conv->exportToWKT(WKTFormatter::create().get()),
"CONVERSION[\"PROJ-based coordinate operation\",\n"
- " METHOD[\"PROJ-based operation method\"],\n"
- " PARAMETER[\"PROJ string\",\"+proj=merc\"]]");
+ " METHOD[\"PROJ-based operation method: +proj=merc\"]]");
EXPECT_EQ(conv->inverse()->exportToPROJString(
PROJStringFormatter::create().get()),
@@ -4135,8 +4134,7 @@ TEST(operation, PROJ_based_empty) {
EXPECT_EQ(conv->exportToWKT(WKTFormatter::create().get()),
"CONVERSION[\"PROJ-based coordinate operation\",\n"
- " METHOD[\"PROJ-based operation method\"],\n"
- " PARAMETER[\"PROJ string\",\"\"]]");
+ " METHOD[\"PROJ-based operation method: \"]]");
EXPECT_THROW(
conv->exportToWKT(