aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_factory.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-05-14 22:01:12 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-05-14 22:56:37 +0200
commitbc52bdcd51328a38bb80cd65ef9af72466be2bcf (patch)
tree2b2698a34b6428d77e6fb400f68c655df256532a /test/unit/test_factory.cpp
parent672b610dbccb37f7f0e1d73745b5a02331a3e090 (diff)
downloadPROJ-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.cpp7
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);