diff options
| author | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2020-03-25 14:16:02 +0000 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2020-03-25 14:16:02 +0000 |
| commit | 2eb726f0e169c41cb9881dd49cb172e8e34325e8 (patch) | |
| tree | 43e67a483c7e5bd7577a34a35dea545328195484 /test/unit/test_c_api.cpp | |
| parent | 60ed38a2483cf6fe44f2fdf7b75844c9fff2c92c (diff) | |
| download | PROJ-2eb726f0e169c41cb9881dd49cb172e8e34325e8.tar.gz PROJ-2eb726f0e169c41cb9881dd49cb172e8e34325e8.zip | |
EngineeringCRS: when exporting to WKT1_GDAL, output unit and axis (fixes https://github.com/OSGeo/gdal/issues/2347)
Diffstat (limited to 'test/unit/test_c_api.cpp')
| -rw-r--r-- | test/unit/test_c_api.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/unit/test_c_api.cpp b/test/unit/test_c_api.cpp index 050ffdb8..b53223d7 100644 --- a/test/unit/test_c_api.cpp +++ b/test/unit/test_c_api.cpp @@ -2738,7 +2738,12 @@ TEST_F(CApi, proj_create_engineering_crs) { ASSERT_NE(crs, nullptr); auto wkt = proj_as_wkt(m_ctxt, crs, PJ_WKT1_GDAL, nullptr); ASSERT_NE(wkt, nullptr); - EXPECT_EQ(std::string(wkt), "LOCAL_CS[\"name\"]") << wkt; + EXPECT_EQ(std::string(wkt), "LOCAL_CS[\"name\",\n" + " UNIT[\"metre\",1,\n" + " AUTHORITY[\"EPSG\",\"9001\"]],\n" + " AXIS[\"Easting\",EAST],\n" + " AXIS[\"Northing\",NORTH]]") + << wkt; } // --------------------------------------------------------------------------- |
