diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-08-20 23:29:54 +0200 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2020-08-21 08:46:38 +0200 |
| commit | 403bd8b2674873955eedab1d578586ec2cebdc25 (patch) | |
| tree | 492ccf8c7f4c5714624db24a2a4018595593af8a /test/unit/test_factory.cpp | |
| parent | b104bc7afbf08a5d2e6097276784424d091b3f59 (diff) | |
| download | PROJ-403bd8b2674873955eedab1d578586ec2cebdc25.tar.gz PROJ-403bd8b2674873955eedab1d578586ec2cebdc25.zip | |
createObjectsFromName(): add back case insensitivity when comparing names
Fixes #2332
Didn't affect released versions
Diffstat (limited to 'test/unit/test_factory.cpp')
| -rw-r--r-- | test/unit/test_factory.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp index 780bdc9a..c34723f2 100644 --- a/test/unit/test_factory.cpp +++ b/test/unit/test_factory.cpp @@ -2782,6 +2782,12 @@ TEST(factory, createObjectsFromName) { } } + // Exact name, but just not the official case ==> should match with exact + // match + EXPECT_EQ(factory->createObjectsFromName("WGS 84 / utm zone 31n", {}, false) + .size(), + 1U); + // Prime meridian EXPECT_EQ(factoryEPSG->createObjectsFromName("Paris", {}, false, 2).size(), 1U); |
