diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-09-15 22:38:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-15 22:38:14 +0200 |
| commit | 1aaca77c2aa548a7be16fc2a2a00a5ef8e867e2a (patch) | |
| tree | 03bb1cb4a1b33b83ec18ef476be4e19180195b43 /test/unit/test_io.cpp | |
| parent | eb5906bb14afba3a5a5508314cfcaa661b75d29d (diff) | |
| parent | 73042b0139ccbdb86996c653b179746e5bc4de67 (diff) | |
| download | PROJ-1aaca77c2aa548a7be16fc2a2a00a5ef8e867e2a.tar.gz PROJ-1aaca77c2aa548a7be16fc2a2a00a5ef8e867e2a.zip | |
Merge pull request #1616 from OSGeo/backport-1614-to-6.2
[Backport 6.2] Fixes related to #1597
Diffstat (limited to 'test/unit/test_io.cpp')
| -rw-r--r-- | test/unit/test_io.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/unit/test_io.cpp b/test/unit/test_io.cpp index 7930ff53..0eed2d15 100644 --- a/test/unit/test_io.cpp +++ b/test/unit/test_io.cpp @@ -7800,6 +7800,10 @@ TEST(io, projparse_somerc) { EXPECT_TRUE(wkt.find("\"Northing at projection centre\",5") != std::string::npos) << wkt; + + auto wkt1 = crs->exportToWKT( + WKTFormatter::create(WKTFormatter::Convention::WKT1_GDAL).get()); + EXPECT_TRUE(wkt1.find("EXTENSION") == std::string::npos) << wkt1; } // --------------------------------------------------------------------------- @@ -8637,6 +8641,17 @@ TEST(io, projparse_init) { } { + // Test that +no_defs +type=crs have no effect + auto obj = createFromUserInput("+init=epsg:4326 +no_defs +type=crs", + dbContext, true); + auto crs = nn_dynamic_pointer_cast<GeographicCRS>(obj); + ASSERT_TRUE(crs != nullptr); + + auto wkt = crs->exportToWKT(WKTFormatter::create().get()); + EXPECT_TRUE(wkt.find("GEODCRS[\"WGS 84\"") == 0) << wkt; + } + + { // EPSG:3040 is normally northing-easting order, but in compatibillity // mode it will be easting-northing auto obj = |
