diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-01-24 18:28:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-24 18:28:27 +0100 |
| commit | 1039889c424af9fd89a637e610c4243839d3cb86 (patch) | |
| tree | 44b3bdfad11c5b2a3f9c67b39fe3674704836b8f /test/unit | |
| parent | e5fae5239f25bdf14862d80243f79b031c093939 (diff) | |
| parent | 9db95ecde7ffa275697ce4921437bc8f7d475d25 (diff) | |
| download | PROJ-1039889c424af9fd89a637e610c4243839d3cb86.tar.gz PROJ-1039889c424af9fd89a637e610c4243839d3cb86.zip | |
Merge pull request #1880 from rouault/createObjectsFromName_use_alias_as_fallback
createObjectsFromName(): use alias as fallback only
Diffstat (limited to 'test/unit')
| -rw-r--r-- | test/unit/test_factory.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp index 33b72efd..d49db5bf 100644 --- a/test/unit/test_factory.cpp +++ b/test/unit/test_factory.cpp @@ -2869,6 +2869,16 @@ TEST(factory, createObjectsFromName) { factory->createObjectsFromName("i_dont_exist", {type}, false, 1); } factory->createObjectsFromName("i_dont_exist", types, false, 1); + + { + auto res = factoryEPSG->createObjectsFromName( + "ETRS89", {AuthorityFactory::ObjectType::GEOGRAPHIC_2D_CRS}, false, + 1); + EXPECT_EQ(res.size(), 1U); + if (!res.empty()) { + EXPECT_EQ(res.front()->getEPSGCode(), 4258); + } + } } // --------------------------------------------------------------------------- |
