diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-11-28 00:07:18 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-11-28 02:08:26 +0100 |
| commit | f0ef1b95e3207d0e81b88529e42ce65c8b4bd764 (patch) | |
| tree | f34a90dfa56aed53aa61b07de28a04ce185e641b /test | |
| parent | a8ad205903101ce0d86f43ad66eef7b739fe8bf4 (diff) | |
| download | PROJ-f0ef1b95e3207d0e81b88529e42ce65c8b4bd764.tar.gz PROJ-f0ef1b95e3207d0e81b88529e42ce65c8b4bd764.zip | |
createObjectsFromName(): in exact match, make looking for 'ETRS89 / UTM zone 32N' return only the exact match
Diffstat (limited to 'test')
| -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 1005d49b..bdd396f1 100644 --- a/test/unit/test_factory.cpp +++ b/test/unit/test_factory.cpp @@ -3062,6 +3062,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); |
