From 05a7bcfa56a03437b2ba73616a6bc21c9347d2a7 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 30 Oct 2019 11:28:43 +0100 Subject: Rework importing of Vertical unit change from EPSG db, add support for Height Depth Reversal and use it in createOperations() --- test/unit/test_factory.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'test/unit/test_factory.cpp') diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp index 47cee060..94010135 100644 --- a/test/unit/test_factory.cpp +++ b/test/unit/test_factory.cpp @@ -542,6 +542,15 @@ TEST(factory, AuthorityFactory_createConversion) { // --------------------------------------------------------------------------- +TEST(factory, AuthorityFactory_createConversion_from_other_transformation) { + auto factory = AuthorityFactory::create(DatabaseContext::create(), "EPSG"); + auto op = factory->createCoordinateOperation("7984", false); + auto conversion = nn_dynamic_pointer_cast(op); + ASSERT_TRUE(conversion != nullptr); +} + +// --------------------------------------------------------------------------- + TEST(factory, AuthorityFactory_createProjectedCRS) { auto factory = AuthorityFactory::create(DatabaseContext::create(), "EPSG"); EXPECT_THROW(factory->createProjectedCRS("-1"), @@ -1157,9 +1166,7 @@ TEST(factory, AuthorityFactory_build_all_concatenated) { AuthorityFactory::ObjectType::CONCATENATED_OPERATION, false); EXPECT_LT(setConcatenatedNoDeprecated.size(), setConcatenated.size()); for (const auto &code : setConcatenated) { - if (in(code, {"8422", "8481", "8482", "8565", "8566", "8572", - // the issue with 7987 is the chaining of two conversions - "7987"})) { + if (in(code, {"8422", "8481", "8482", "8565", "8566", "8572"})) { EXPECT_THROW(factory->createCoordinateOperation(code, false), FactoryException) << code; -- cgit v1.2.3