diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-02-25 23:17:48 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-02-26 14:04:09 +0100 |
| commit | 1f8541d6f43f7fde949772e0a2174e317542b985 (patch) | |
| tree | eaa29ccb86245bd6c3795d75d95132f4dd7a6bc6 /test | |
| parent | 414ae2699ccfafdabacd12010acf7ad2f16fd889 (diff) | |
| download | PROJ-1f8541d6f43f7fde949772e0a2174e317542b985.tar.gz PROJ-1f8541d6f43f7fde949772e0a2174e317542b985.zip | |
Database: update to EPSG v9.8.7
Diffstat (limited to 'test')
| -rw-r--r-- | test/cli/testprojinfo_out.dist | 3 | ||||
| -rw-r--r-- | test/unit/test_factory.cpp | 2 | ||||
| -rw-r--r-- | test/unit/test_operation.cpp | 19 |
3 files changed, 13 insertions, 11 deletions
diff --git a/test/cli/testprojinfo_out.dist b/test/cli/testprojinfo_out.dist index f06e13c7..600d1ace 100644 --- a/test/cli/testprojinfo_out.dist +++ b/test/cli/testprojinfo_out.dist @@ -811,6 +811,7 @@ Several candidates area of use matching provided name : EPSG:3472 : Denmark - onshore east of 12°E EPSG:3631 : Denmark - onshore Jutland west of 10°E EPSG:3632 : Denmark - onshore Jutland east of 9°E and Funen + EPSG:4575 : Denmark - onshore Jutland, Funen, Zealand and Lolland Testing projinfo -s EPSG:4230 -t EPSG:4258 --area no_match --summary No area of use matching provided name @@ -1068,7 +1069,7 @@ unknown id, Ballpark geographic offset from AGD66 to WGS 84 (G1762), unknown acc Testing -s EPSG:31467 -t ETRS89 --spatial-test intersects --grid-check none --bbox 8,48,9,49 --summary. Should include both DHDN to ETRS89 (8) and DHDN to ETRS89 (BWTA2017) Candidate operations found: 4 -unknown id, Inverse of 3-degree Gauss-Kruger zone 3 + DHDN to ETRS89 (BWTA2017), 0.89 m, Germany - Baden-Wurtemberg +unknown id, Inverse of 3-degree Gauss-Kruger zone 3 + DHDN to ETRS89 (9), 0.1 m, Germany - Baden-Wurttemberg unknown id, Inverse of 3-degree Gauss-Kruger zone 3 + DHDN to ETRS89 (8), 0.9 m, Germany - onshore unknown id, Inverse of 3-degree Gauss-Kruger zone 3 + DHDN to ETRS89 (3), 1 m, Germany - West Germany S unknown id, Inverse of 3-degree Gauss-Kruger zone 3 + DHDN to ETRS89 (2), 3 m, Germany - West Germany all states diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp index 4b3ca9a5..5cf45d1a 100644 --- a/test/unit/test_factory.cpp +++ b/test/unit/test_factory.cpp @@ -2756,7 +2756,7 @@ TEST(factory, createObjectsFromName) { auto res = factoryEPSG->createObjectsFromName( "WGS84", {AuthorityFactory::ObjectType::GEOGRAPHIC_2D_CRS}, true); EXPECT_EQ(res.size(), - 9U); // EPSG:4326 and EPSG:4030 and the 6 WGS84 realizations + 8U); // EPSG:4326 and the 6 WGS84 realizations // and EPSG:7881 'Tritan St. Helena'' whose alias is // 'WGS 84 Tritan St. Helena' if (!res.empty()) { diff --git a/test/unit/test_operation.cpp b/test/unit/test_operation.cpp index 8a87f3e5..fb611f68 100644 --- a/test/unit/test_operation.cpp +++ b/test/unit/test_operation.cpp @@ -4948,16 +4948,9 @@ TEST(operation, geogCRS_to_geogCRS_context_concatenated_operation) { authFactory->createCoordinateReferenceSystem("4171"), // RGF93 ctxt); 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 " - "+proj=unitconvert +xy_in=grad +xy_out=rad +step +inv " - "+proj=longlat +ellps=clrk80ign +pm=paris +step +proj=hgridshift " - "+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()), + EXPECT_EQ(list[0]->nameStr(), "NTF (Paris) to RGF93 (1)"); + EXPECT_EQ(list[0]->exportToPROJString(PROJStringFormatter::create().get()), "+proj=pipeline " "+step +proj=axisswap +order=2,1 " "+step +proj=unitconvert +xy_in=grad +xy_out=rad " @@ -4971,6 +4964,14 @@ TEST(operation, geogCRS_to_geogCRS_context_concatenated_operation) { "+step +proj=unitconvert +xy_in=rad +xy_out=deg " "+step +proj=axisswap +order=2,1"); + EXPECT_EQ(list[1]->nameStr(), "NTF (Paris) to RGF93 (2)"); + 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=hgridshift " + "+grids=fr_ign_ntf_r93.tif +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); |
