diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2020-01-25 20:50:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-25 20:50:01 +0100 |
| commit | f02d83434bd27b882824642f5d4639646e01f77a (patch) | |
| tree | 5f78a72c911387f824eaa4e8777b8f27c195ea49 /test | |
| parent | d3e133b23fdb73a3f663f903fa8b8ca53cdf570e (diff) | |
| parent | f201a86386b9c8fa183b3f9855a4087a9a800f4e (diff) | |
| download | PROJ-f02d83434bd27b882824642f5d4639646e01f77a.tar.gz PROJ-f02d83434bd27b882824642f5d4639646e01f77a.zip | |
Merge pull request #1884 from rouault/cea_k_0
Fix ingestion of +proj=cea with +k_0
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit/test_io.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/unit/test_io.cpp b/test/unit/test_io.cpp index fd38847c..cc780be1 100644 --- a/test/unit/test_io.cpp +++ b/test/unit/test_io.cpp @@ -7968,6 +7968,24 @@ TEST(io, projparse_cea_ellipsoidal) { // --------------------------------------------------------------------------- +TEST(io, projparse_cea_ellipsoidal_with_k_0) { + auto obj = PROJStringParser().createFromPROJString( + "+proj=cea +ellps=GRS80 +k_0=0.99 +type=crs"); + auto crs = nn_dynamic_pointer_cast<ProjectedCRS>(obj); + ASSERT_TRUE(crs != nullptr); + WKTFormatterNNPtr f(WKTFormatter::create()); + f->simulCurNodeHasId(); + f->setMultiLine(false); + crs->exportToWKT(f.get()); + auto wkt = f->toString(); + EXPECT_TRUE( + wkt.find("PARAMETER[\"Latitude of 1st standard parallel\",8.1365") != + std::string::npos) + << wkt; +} + +// --------------------------------------------------------------------------- + TEST(io, projparse_geos_sweep_x) { auto obj = PROJStringParser().createFromPROJString( "+proj=geos +sweep=x +h=1 +type=crs"); |
