diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2019-12-16 16:23:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-16 16:23:20 +0100 |
| commit | 533ca5d12bbb7a4b52fc5cdae439e655f6e54b9c (patch) | |
| tree | 0669d9ef7dfd3b61a53b1972e6acc04dc81074de /test/unit | |
| parent | 59c1f1993b6b62b6320b5faafed0494d0b0ee31c (diff) | |
| parent | 3a035e99f786b61837efcdf56a86748828e1f155 (diff) | |
| download | PROJ-533ca5d12bbb7a4b52fc5cdae439e655f6e54b9c.tar.gz PROJ-533ca5d12bbb7a4b52fc5cdae439e655f6e54b9c.zip | |
Merge pull request #1786 from rouault/fake_EPSG_102100
Make EPSG:102100 resolve to ESRI:102100 (fixes #1730)
Diffstat (limited to 'test/unit')
| -rw-r--r-- | test/unit/test_io.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/unit/test_io.cpp b/test/unit/test_io.cpp index 15ab8706..4242a15c 100644 --- a/test/unit/test_io.cpp +++ b/test/unit/test_io.cpp @@ -9359,6 +9359,20 @@ TEST(io, createFromUserInput) { // --------------------------------------------------------------------------- +TEST(io, createFromUserInput_hack_EPSG_102100) { + auto dbContext = DatabaseContext::create(); + auto obj = createFromUserInput("EPSG:102100", dbContext); + auto crs = nn_dynamic_pointer_cast<CRS>(obj); + ASSERT_TRUE(crs != nullptr); + const auto &ids = crs->identifiers(); + ASSERT_EQ(ids.size(), 1U); + // we do not lie on the real authority + EXPECT_EQ(*ids[0]->codeSpace(), "ESRI"); + EXPECT_EQ(ids[0]->code(), "102100"); +} + +// --------------------------------------------------------------------------- + TEST(io, guessDialect) { EXPECT_EQ(WKTParser().guessDialect("LOCAL_CS[\"foo\"]"), WKTParser::WKTGuessedDialect::WKT1_GDAL); |
