aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_factory.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-01-22 14:09:35 +0100
committerGitHub <noreply@github.com>2020-01-22 14:09:35 +0100
commita95431d8666db9953115a3a824db396f8aa82b52 (patch)
tree21117e52f95b8f36880efef8cd71c1fcec21242c /test/unit/test_factory.cpp
parentc5fb54168665d41503ef3a08f0534da58949b632 (diff)
parent4724025e6c817761052fc0dc8810fd489a9e0104 (diff)
downloadPROJ-a95431d8666db9953115a3a824db396f8aa82b52.tar.gz
PROJ-a95431d8666db9953115a3a824db396f8aa82b52.zip
Merge pull request #1855 from rouault/rfc4_merge_back_master
[RFC4_dev] Merge master back to rfc4 latest branch
Diffstat (limited to 'test/unit/test_factory.cpp')
-rw-r--r--test/unit/test_factory.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp
index e342dad9..6a88e2b6 100644
--- a/test/unit/test_factory.cpp
+++ b/test/unit/test_factory.cpp
@@ -2737,8 +2737,8 @@ TEST(factory, createObjectsFromName) {
EXPECT_EQ(factory->createObjectsFromName("").size(), 0U);
- // ellipsoid + 3 geodeticCRS
- EXPECT_EQ(factory->createObjectsFromName("WGS 84", {}, false).size(), 4U);
+ // ellipsoid + datum + 3 geodeticCRS
+ EXPECT_EQ(factory->createObjectsFromName("WGS 84", {}, false).size(), 5U);
EXPECT_EQ(factory->createObjectsFromName("WGS 84", {}, true, 10).size(),
10U);
@@ -2753,7 +2753,9 @@ TEST(factory, createObjectsFromName) {
auto res = factoryEPSG->createObjectsFromName(
"WGS84", {AuthorityFactory::ObjectType::GEOGRAPHIC_2D_CRS}, true);
EXPECT_EQ(res.size(),
- 8U); // EPSG:4326 and EPSG:4030 and the 6 WGS84 realizations
+ 9U); // EPSG:4326 and EPSG:4030 and the 6 WGS84 realizations
+ // and EPSG:7881 'Tritan St. Helena'' whose alias is
+ // 'WGS 84 Tritan St. Helena'
if (!res.empty()) {
EXPECT_EQ(res.front()->getEPSGCode(), 4326);
}
@@ -2876,7 +2878,7 @@ TEST(factory, getMetadata) {
EXPECT_EQ(ctxt->getMetadata("i_do_not_exist"), nullptr);
const char *IGNF_VERSION = ctxt->getMetadata("IGNF.VERSION");
ASSERT_TRUE(IGNF_VERSION != nullptr);
- EXPECT_EQ(std::string(IGNF_VERSION), "3.0.3");
+ EXPECT_EQ(std::string(IGNF_VERSION), "3.1.0");
}
// ---------------------------------------------------------------------------