aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_io.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2022-02-14 20:00:25 +0100
committerEven Rouault <even.rouault@spatialys.com>2022-02-14 20:00:25 +0100
commitdf9e2fe519d97139a8264057d96b034788e8e8e7 (patch)
tree0ac30dd48e217392fcf1b3937e025adaa81b9730 /test/unit/test_io.cpp
parentf67c82912fde55a58d565697263306c840b3efd4 (diff)
downloadPROJ-df9e2fe519d97139a8264057d96b034788e8e8e7.tar.gz
PROJ-df9e2fe519d97139a8264057d96b034788e8e8e7.zip
Better deal with importing strings like '+init=epsg:XXXX +over' (refs MapServer/MapServer#6478)
Diffstat (limited to 'test/unit/test_io.cpp')
-rw-r--r--test/unit/test_io.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/test_io.cpp b/test/unit/test_io.cpp
index 1c7fc812..33f4c731 100644
--- a/test/unit/test_io.cpp
+++ b/test/unit/test_io.cpp
@@ -10531,13 +10531,13 @@ TEST(io, projparse_init) {
}
{
- auto obj = createFromUserInput("+title=mytitle +over +init=epsg:4326",
+ auto obj = createFromUserInput("+title=mytitle +init=epsg:4326 +over",
dbContext, true);
auto crs = nn_dynamic_pointer_cast<GeographicCRS>(obj);
ASSERT_TRUE(crs != nullptr);
EXPECT_EQ(crs->nameStr(), "mytitle");
EXPECT_EQ(crs->exportToPROJString(PROJStringFormatter::create().get()),
- "+proj=longlat +over +datum=WGS84 +no_defs +type=crs");
+ "+proj=longlat +datum=WGS84 +over +no_defs +type=crs");
}
{