From 7f27b8d38c30118ff4fd5eddb1c9fcc6d94b40ea Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Mon, 30 Sep 2019 12:00:47 +0200 Subject: AuthorityFactory::getDescriptionText(): return CRS object in priority --- test/unit/test_factory.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/unit/test_factory.cpp') 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"); } // --------------------------------------------------------------------------- -- cgit v1.2.3