aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_io.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/test_io.cpp')
-rw-r--r--test/unit/test_io.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/unit/test_io.cpp b/test/unit/test_io.cpp
index 2642ed23..52608a4a 100644
--- a/test/unit/test_io.cpp
+++ b/test/unit/test_io.cpp
@@ -8641,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 =