diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-09-16 12:01:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-16 12:01:39 +0200 |
| commit | a3e412995df7dae2c8ef13d2682e03b770edcb75 (patch) | |
| tree | 751cd21521ee33e002222b165c1938990d1b0bac /test/unit/test_crs.cpp | |
| parent | e54739954db813cd8394066b1e64ae8f2dd76bd8 (diff) | |
| parent | 85f496b26702bf6566296072795e821d70156c09 (diff) | |
| download | PROJ-a3e412995df7dae2c8ef13d2682e03b770edcb75.tar.gz PROJ-a3e412995df7dae2c8ef13d2682e03b770edcb75.zip | |
Merge pull request #2851 from rouault/epsg_10_035
Database: update to EPSG v10.035
Diffstat (limited to 'test/unit/test_crs.cpp')
| -rw-r--r-- | test/unit/test_crs.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/test/unit/test_crs.cpp b/test/unit/test_crs.cpp index 2ac26d3a..42e6018b 100644 --- a/test/unit/test_crs.cpp +++ b/test/unit/test_crs.cpp @@ -2911,9 +2911,14 @@ TEST(crs, projectedCRS_identify_db) { ASSERT_TRUE(crs != nullptr); auto factoryAll = AuthorityFactory::create(dbContext, std::string()); auto res = crs->identify(factoryAll); - ASSERT_GE(res.size(), 1U); - EXPECT_EQ(res.front().first->getEPSGCode(), 2154); - EXPECT_EQ(res.front().second, 90); + bool found = false; + for (const auto &candidate : res) { + if (candidate.first->getEPSGCode() == 2154) { + found = true; + EXPECT_EQ(candidate.second, 90); + } + } + EXPECT_TRUE(found); } { // Identify with DatumEnsemble @@ -6034,6 +6039,10 @@ TEST(crs, crs_createBoundCRSToWGS84IfPossible) { "+proj=longlat +datum=WGS84 +geoidgrids=us_nga_egm08_25.tif " "+vunits=m +no_defs +type=crs"); } +#ifdef disabled_since_epsg_10_035 + // There are now too many transformations from NGF-IGN69 height to WGS 84 + // for createBoundCRSToWGS84IfPossible() to be able to select a + // vertical geoidgrid { // NTF (Paris) / Lambert zone II + NGF-IGN69 height auto crs_7421 = factory->createCoordinateReferenceSystem("7421"); @@ -6053,6 +6062,7 @@ TEST(crs, crs_createBoundCRSToWGS84IfPossible) { "+towgs84=-168,-60,320,0,0,0,0 +units=m " "+geoidgrids=fr_ign_RAF18.tif +vunits=m +no_defs +type=crs"); } +#endif { auto crs = createVerticalCRS(); EXPECT_EQ(crs->createBoundCRSToWGS84IfPossible( |
