aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_factory.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-11-28 00:07:18 +0100
committerEven Rouault <even.rouault@spatialys.com>2020-11-28 00:15:11 +0100
commit4de6f0bd24051ed60d9c0a98dbba1da376457f12 (patch)
tree9404b91022e079de90b2f80b8e0f84dc8220f3ba /test/unit/test_factory.cpp
parent24c3bbb299798db775ef10101ee8aa76f8320bbf (diff)
downloadPROJ-4de6f0bd24051ed60d9c0a98dbba1da376457f12.tar.gz
PROJ-4de6f0bd24051ed60d9c0a98dbba1da376457f12.zip
createObjectsFromName(): in exact match, make looking for 'ETRS89 / UTM zone 32N' return only the exact match
Diffstat (limited to 'test/unit/test_factory.cpp')
-rw-r--r--test/unit/test_factory.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp
index 8e9b7ab6..ff86c4d3 100644
--- a/test/unit/test_factory.cpp
+++ b/test/unit/test_factory.cpp
@@ -3082,6 +3082,12 @@ TEST(factory, createObjectsFromName) {
.size(),
1U);
+ // Exact name, but with other CRS that have an aliases to it ==> should
+ // match only the CRS with the given name, not those other CRS.
+ EXPECT_EQ(factory->createObjectsFromName("ETRS89 / UTM zone 32N", {}, false)
+ .size(),
+ 1U);
+
// Prime meridian
EXPECT_EQ(factoryEPSG->createObjectsFromName("Paris", {}, false, 2).size(),
1U);