diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-11-28 18:54:17 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-11-28 18:54:17 +0100 |
| commit | cef7a8a209717938a08e909dcc03c05b09c5cd77 (patch) | |
| tree | 165cbf217185cd9d36c3636bc3f84a19ac900906 /test/unit | |
| parent | b0983324c5ac3e2435a36a8aa5030c81f2ad779a (diff) | |
| download | PROJ-cef7a8a209717938a08e909dcc03c05b09c5cd77.tar.gz PROJ-cef7a8a209717938a08e909dcc03c05b09c5cd77.zip | |
createOperations(): fix vertical to geographic when synthetizing an operation that involves a vertical axis reversal
Diffstat (limited to 'test/unit')
| -rw-r--r-- | test/unit/test_operation.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unit/test_operation.cpp b/test/unit/test_operation.cpp index 9f6a808f..9cde8822 100644 --- a/test/unit/test_operation.cpp +++ b/test/unit/test_operation.cpp @@ -4675,6 +4675,18 @@ TEST(operation, vertCRS_to_geogCRS_context) { "+proj=pipeline +step +inv +proj=vgridshift +grids=egm08_25.gtx " "+multiplier=1"); } + { + auto ctxt = + CoordinateOperationContext::create(authFactory, nullptr, 0.0); + auto list = CoordinateOperationFactory::create()->createOperations( + // NGVD29 depth (ftUS) + authFactory->createCoordinateReferenceSystem("6359"), + authFactory->createCoordinateReferenceSystem("4326"), ctxt); + ASSERT_EQ(list.size(), 1U); + EXPECT_EQ( + list[0]->exportToPROJString(PROJStringFormatter::create().get()), + "+proj=affine +s33=-0.304800609601219"); + } } // --------------------------------------------------------------------------- |
