diff options
Diffstat (limited to 'test/unit/test_operation.cpp')
| -rw-r--r-- | test/unit/test_operation.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/unit/test_operation.cpp b/test/unit/test_operation.cpp index 3cf633b6..d134f086 100644 --- a/test/unit/test_operation.cpp +++ b/test/unit/test_operation.cpp @@ -4116,14 +4116,11 @@ TEST(operation, PROJ_based) { ->exportToPROJString(PROJStringFormatter::create().get()), str); - EXPECT_THROW(SingleOperation::createPROJBased(PropertyMap(), "+inv", - nullptr, nullptr) + EXPECT_THROW(SingleOperation::createPROJBased( + PropertyMap(), "+proj=pipeline +step +proj=pipeline", + nullptr, nullptr) ->exportToPROJString(PROJStringFormatter::create().get()), FormattingException); - EXPECT_THROW( - SingleOperation::createPROJBased(PropertyMap(), "foo", nullptr, nullptr) - ->exportToPROJString(PROJStringFormatter::create().get()), - FormattingException); } // --------------------------------------------------------------------------- @@ -4690,7 +4687,9 @@ TEST(operation, geogCRS_to_geogCRS_init_IGNF_to_init_IGNF_context) { EXPECT_EQ(list[0]->nameStr(), "NOUVELLE TRIANGULATION DE LA FRANCE (NTF) vers RGF93 (ETRS89)"); EXPECT_EQ(list[0]->exportToPROJString(PROJStringFormatter::create().get()), - "+proj=hgridshift +grids=ntf_r93.gsb"); + "+proj=pipeline +step +proj=unitconvert +xy_in=deg +xy_out=rad " + "+step +proj=hgridshift +grids=ntf_r93.gsb +step " + "+proj=unitconvert +xy_in=rad +xy_out=deg"); } // --------------------------------------------------------------------------- |
