diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2020-01-30 11:08:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-30 11:08:49 +0100 |
| commit | 91c40b654bb2b07ae79367a683e45c86d29ba0a4 (patch) | |
| tree | 69a55fe57d65fdd604b9c03aab0b9003489a5e3c /test/unit/test_operation.cpp | |
| parent | 3ab34eb940302bb564968309a3dfc4c3050e9c3e (diff) | |
| parent | 6f6c53c8553541690a16775ab2c92f7703196e59 (diff) | |
| download | PROJ-91c40b654bb2b07ae79367a683e45c86d29ba0a4.tar.gz PROJ-91c40b654bb2b07ae79367a683e45c86d29ba0a4.zip | |
Merge pull request #1897 from rouault/map_geocentric_translation_method
Add EPSG records for 'Geocentric translation by Grid Interpolation (IGN)' (gr3df97a.txt) and map them to new +proj=xyzgridshift
Diffstat (limited to 'test/unit/test_operation.cpp')
| -rw-r--r-- | test/unit/test_operation.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/test/unit/test_operation.cpp b/test/unit/test_operation.cpp index ebd306ba..d4d1768e 100644 --- a/test/unit/test_operation.cpp +++ b/test/unit/test_operation.cpp @@ -4826,7 +4826,7 @@ TEST(operation, geogCRS_to_geogCRS_context_concatenated_operation) { authFactory->createCoordinateReferenceSystem("4807"), // NTF(Paris) authFactory->createCoordinateReferenceSystem("4171"), // RGF93 ctxt); - ASSERT_EQ(list.size(), 3U); + ASSERT_EQ(list.size(), 5U); EXPECT_EQ(list[0]->nameStr(), "NTF (Paris) to RGF93 (2)"); EXPECT_EQ(list[0]->exportToPROJString(PROJStringFormatter::create().get()), "+proj=pipeline +step +proj=axisswap +order=2,1 +step " @@ -4835,6 +4835,21 @@ TEST(operation, geogCRS_to_geogCRS_context_concatenated_operation) { "+grids=fr_ign_ntf_r93.tif +step +proj=unitconvert +xy_in=rad " "+xy_out=deg +step +proj=axisswap +order=2,1"); + EXPECT_EQ(list[1]->nameStr(), "NTF (Paris) to NTF (1) + NTF to RGF93 (1)"); + EXPECT_EQ(list[1]->exportToPROJString(PROJStringFormatter::create().get()), + "+proj=pipeline " + "+step +proj=axisswap +order=2,1 " + "+step +proj=unitconvert +xy_in=grad +xy_out=rad " + "+step +inv +proj=longlat +ellps=clrk80ign +pm=paris " + "+step +proj=push +v_3 " + "+step +proj=cart +ellps=clrk80ign " + "+step +proj=xyzgridshift +grids=fr_ign_gr3df97a.tif " + "+grid_ref=output_crs +ellps=GRS80 " + "+step +inv +proj=cart +ellps=GRS80 " + "+step +proj=pop +v_3 " + "+step +proj=unitconvert +xy_in=rad +xy_out=deg " + "+step +proj=axisswap +order=2,1"); + EXPECT_TRUE(nn_dynamic_pointer_cast<ConcatenatedOperation>(list[0]) != nullptr); auto grids = list[0]->gridsNeeded(DatabaseContext::create(), false); |
