From 9a112931555aa324ed9caa3c261a4fd11551d615 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 22 Oct 2020 23:16:58 +0200 Subject: WKT1_ESRI export: generate VERTCS[...,DATUM[...,SPHEROID[]] syntax when ellipsoidal height is found --- test/unit/test_io.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/unit') diff --git a/test/unit/test_io.cpp b/test/unit/test_io.cpp index 5cef886f..93b79b67 100644 --- a/test/unit/test_io.cpp +++ b/test/unit/test_io.cpp @@ -2743,6 +2743,12 @@ TEST(wkt_parse, VERTCS_with_ellipsoidal_height_ESRI) { auto crs = nn_dynamic_pointer_cast(obj); ASSERT_TRUE(crs != nullptr); + EXPECT_EQ( + crs->exportToWKT( + WKTFormatter::create(WKTFormatter::Convention::WKT1_ESRI, dbContext) + .get()), + wkt); + const char *expected_wkt1 = "VERT_CS[\"WGS_1984\",\n" " VERT_DATUM[\"World Geodetic System 1984\",2002],\n" -- cgit v1.2.3