diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-05-27 11:57:05 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2021-05-27 11:57:05 +0200 |
| commit | edc6df3dc1a862ca47f0376d1e35971fc964c573 (patch) | |
| tree | ce3c845caafa23cdd25f7dbef6fa615c52492caf /test | |
| parent | 548a6ab0509ea03bf4fffc377c17fcd0ba977c7d (diff) | |
| download | PROJ-edc6df3dc1a862ca47f0376d1e35971fc964c573.tar.gz PROJ-edc6df3dc1a862ca47f0376d1e35971fc964c573.zip | |
ConcatenatedOperation::fixStepsDirection(): remove recently introdued hack specific to EPSG:9731 now that is is deprecated
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit/test_factory.cpp | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp index d7bb7a07..6c8340aa 100644 --- a/test/unit/test_factory.cpp +++ b/test/unit/test_factory.cpp @@ -1326,26 +1326,6 @@ TEST( // --------------------------------------------------------------------------- -TEST( - factory, - AuthorityFactory_createCoordinateOperation_concatenated_operation_epsg_9731) { - auto factory = AuthorityFactory::create(DatabaseContext::create(), "EPSG"); - auto op = factory->createCoordinateOperation("9731", false); - auto concatenated = nn_dynamic_pointer_cast<ConcatenatedOperation>(op); - ASSERT_TRUE(concatenated != nullptr); - EXPECT_EQ( - concatenated->exportToPROJString(PROJStringFormatter::create().get()), - "+proj=pipeline " - "+step +proj=axisswap +order=2,1 " - "+step +proj=unitconvert +xy_in=deg +xy_out=rad " - "+step +inv +proj=vgridshift +grids=geo_igm_mar06.grd +multiplier=1 " - "+step +proj=unitconvert +xy_in=rad +xy_out=deg " - "+step +proj=axisswap +order=2,1 " - "+step +proj=geogoffset +dh=0.141"); -} - -// --------------------------------------------------------------------------- - static bool in(const std::string &str, const std::vector<std::string> &list) { for (const auto &listItem : list) { if (str == listItem) { @@ -1365,7 +1345,8 @@ 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"})) { + if (in(code, + {"8422", "8481", "8482", "8565", "8566", "8572", "9731"})) { EXPECT_THROW(factory->createCoordinateOperation(code, false), FactoryException) << code; |
