diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-10-31 16:16:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-31 16:16:01 +0100 |
| commit | 8a31e8778b95eb8e857c30f276fbf1e5047f78fe (patch) | |
| tree | 4e8de19f2973912748dbc21eb0bfa93d7aec73c1 /test/unit/test_factory.cpp | |
| parent | bb3da7f1e4a52f12b6df48f4a427a8772e63ab18 (diff) | |
| parent | 81e06f42c7552494bcb3f466b0b1317341187679 (diff) | |
| download | PROJ-8a31e8778b95eb8e857c30f276fbf1e5047f78fe.tar.gz PROJ-8a31e8778b95eb8e857c30f276fbf1e5047f78fe.zip | |
Merge pull request #1703 from rouault/improve_transformation_with_alternative_vertical_unit_and_direction
Improve transformations with alternative vertical unit and direction
Diffstat (limited to 'test/unit/test_factory.cpp')
| -rw-r--r-- | test/unit/test_factory.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
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<Conversion>(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; |
