aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_factory.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-09-30 12:00:47 +0200
committerEven Rouault <even.rouault@spatialys.com>2019-09-30 12:00:47 +0200
commit7f27b8d38c30118ff4fd5eddb1c9fcc6d94b40ea (patch)
treebbc3ff5362560161646530bd75fb307a2ee57e9d /test/unit/test_factory.cpp
parent34403c875e120558f018637a9950d883d3236cdc (diff)
downloadPROJ-7f27b8d38c30118ff4fd5eddb1c9fcc6d94b40ea.tar.gz
PROJ-7f27b8d38c30118ff4fd5eddb1c9fcc6d94b40ea.zip
AuthorityFactory::getDescriptionText(): return CRS object in priority
Diffstat (limited to 'test/unit/test_factory.cpp')
-rw-r--r--test/unit/test_factory.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp
index 881b7605..af1374bd 100644
--- a/test/unit/test_factory.cpp
+++ b/test/unit/test_factory.cpp
@@ -1324,6 +1324,11 @@ TEST(factory, AuthorityFactory_getDescriptionText) {
NoSuchAuthorityCodeException);
EXPECT_EQ(factory->getDescriptionText("10000"),
"RGF93 to NGF IGN69 height (1)");
+
+ // Several objects have 4326 code, including an area of use, but return
+ // the CRS one.
+ EXPECT_EQ(factory->getDescriptionText("4326"),
+ "WGS 84");
}
// ---------------------------------------------------------------------------