diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-05-14 22:01:12 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-05-14 22:56:37 +0200 |
| commit | bc52bdcd51328a38bb80cd65ef9af72466be2bcf (patch) | |
| tree | 2b2698a34b6428d77e6fb400f68c655df256532a /test/unit/test_factory.cpp | |
| parent | 672b610dbccb37f7f0e1d73745b5a02331a3e090 (diff) | |
| download | PROJ-bc52bdcd51328a38bb80cd65ef9af72466be2bcf.tar.gz PROJ-bc52bdcd51328a38bb80cd65ef9af72466be2bcf.zip | |
createObjectsFromName(): fix when objectType = { GEOCENTRIC_CRS }
Diffstat (limited to 'test/unit/test_factory.cpp')
| -rw-r--r-- | test/unit/test_factory.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp index aee2f572..e6cfa72b 100644 --- a/test/unit/test_factory.cpp +++ b/test/unit/test_factory.cpp @@ -2763,6 +2763,13 @@ TEST(factory, createObjectsFromName) { .size(), 3U); + EXPECT_EQ( + factory + ->createObjectsFromName( + "WGS 84", {AuthorityFactory::ObjectType::GEOCENTRIC_CRS}, false) + .size(), + 1U); + { auto res = factoryEPSG->createObjectsFromName( "WGS84", {AuthorityFactory::ObjectType::GEOGRAPHIC_2D_CRS}, true); |
