diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-10-22 23:16:58 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-10-23 00:03:29 +0200 |
| commit | 9a112931555aa324ed9caa3c261a4fd11551d615 (patch) | |
| tree | f2693f56d020a23ca169963304b153eac3f77732 /test/unit | |
| parent | 82cd218a7ab44eafef92445f2caaec0fb6ec799a (diff) | |
| download | PROJ-9a112931555aa324ed9caa3c261a4fd11551d615.tar.gz PROJ-9a112931555aa324ed9caa3c261a4fd11551d615.zip | |
WKT1_ESRI export: generate VERTCS[...,DATUM[...,SPHEROID[]] syntax when ellipsoidal height is found
Diffstat (limited to 'test/unit')
| -rw-r--r-- | test/unit/test_io.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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<VerticalCRS>(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" |
