aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_io.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2022-02-14 20:40:25 +0100
committerGitHub <noreply@github.com>2022-02-14 20:40:25 +0100
commitd4deb549982a16c0b7b324739af781d2779f2324 (patch)
tree0ac30dd48e217392fcf1b3937e025adaa81b9730 /test/unit/test_io.cpp
parentf67c82912fde55a58d565697263306c840b3efd4 (diff)
parentdf9e2fe519d97139a8264057d96b034788e8e8e7 (diff)
downloadPROJ-d4deb549982a16c0b7b324739af781d2779f2324.tar.gz
PROJ-d4deb549982a16c0b7b324739af781d2779f2324.zip
Merge pull request #3055 from rouault/over_fix
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");
}
{