diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-02-13 17:26:22 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-02-13 17:26:22 +0100 |
| commit | b60b9e88ec2a5494062370f5346ecf1e0880b169 (patch) | |
| tree | dfeaf174c1a9d31d973a68aa9d6ce37f45d06c6f /test/unit/test_operation.cpp | |
| parent | 4d1f5486f6453300bdb35c2607e126f6c526c243 (diff) | |
| download | PROJ-b60b9e88ec2a5494062370f5346ecf1e0880b169.tar.gz PROJ-b60b9e88ec2a5494062370f5346ecf1e0880b169.zip | |
PROJ string parsing: no longer attempt to build a CoordinateOperation object from +proj=helmert/molodensky since there are ambiguities
Diffstat (limited to 'test/unit/test_operation.cpp')
| -rw-r--r-- | test/unit/test_operation.cpp | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/test/unit/test_operation.cpp b/test/unit/test_operation.cpp index 586226e2..6144663e 100644 --- a/test/unit/test_operation.cpp +++ b/test/unit/test_operation.cpp @@ -6062,21 +6062,23 @@ TEST(operation, compoundCRS_to_compoundCRS_with_vertical_transform) { { auto formatter = PROJStringFormatter::create(); formatter->setUseApproxTMerc(true); - EXPECT_EQ(op->exportToPROJString(formatter.get()), - "+proj=pipeline +step +inv +proj=tmerc +approx +lat_0=1 +lon_0=2 " - "+k=3 +x_0=4 +y_0=5 +ellps=WGS84 +step " - "+proj=vgridshift +grids=bla.gtx +multiplier=0.001 +step " - "+proj=utm +approx +zone=32 " - "+ellps=WGS84"); + EXPECT_EQ( + op->exportToPROJString(formatter.get()), + "+proj=pipeline +step +inv +proj=tmerc +approx +lat_0=1 +lon_0=2 " + "+k=3 +x_0=4 +y_0=5 +ellps=WGS84 +step " + "+proj=vgridshift +grids=bla.gtx +multiplier=0.001 +step " + "+proj=utm +approx +zone=32 " + "+ellps=WGS84"); } { auto formatter = PROJStringFormatter::create(); formatter->setUseApproxTMerc(true); - EXPECT_EQ(op->inverse()->exportToPROJString(formatter.get()), - "+proj=pipeline +step +inv +proj=utm +approx +zone=32 +ellps=WGS84 " - "+step +inv +proj=vgridshift +grids=bla.gtx " - "+multiplier=0.001 +step +proj=tmerc +approx +lat_0=1 +lon_0=2 " - "+k=3 +x_0=4 +y_0=5 +ellps=WGS84"); + EXPECT_EQ( + op->inverse()->exportToPROJString(formatter.get()), + "+proj=pipeline +step +inv +proj=utm +approx +zone=32 +ellps=WGS84 " + "+step +inv +proj=vgridshift +grids=bla.gtx " + "+multiplier=0.001 +step +proj=tmerc +approx +lat_0=1 +lon_0=2 " + "+k=3 +x_0=4 +y_0=5 +ellps=WGS84"); } auto opInverse = CoordinateOperationFactory::create()->createOperation( |
