diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-05-16 19:51:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-16 19:51:48 +0200 |
| commit | cc1aca389c61eed789b90d57de3f7a52424e1ef2 (patch) | |
| tree | aba5dc6bca2c9ce4b36ada1efa1db9ca4207de65 /test/unit/test_factory.cpp | |
| parent | 5da981bcb9461fe25a2f742890c92b24161c3c37 (diff) | |
| parent | 752696eb8ac0ecb9ff96432ec5849625ed452f74 (diff) | |
| download | PROJ-cc1aca389c61eed789b90d57de3f7a52424e1ef2.tar.gz PROJ-cc1aca389c61eed789b90d57de3f7a52424e1ef2.zip | |
Merge pull request #2722 from rouault/epsg_10_022
Database: update to EPSG v10.022
Diffstat (limited to 'test/unit/test_factory.cpp')
| -rw-r--r-- | test/unit/test_factory.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp index 37013775..d7bb7a07 100644 --- a/test/unit/test_factory.cpp +++ b/test/unit/test_factory.cpp @@ -1326,6 +1326,26 @@ 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) { |
