diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-04-03 16:16:22 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2021-04-03 20:18:10 +0200 |
| commit | 2594b3a2240db7d7007e1c98f08762613b7f7e73 (patch) | |
| tree | fe9a53e6a1969ac0435b6dc4f06aed5763b62055 /test/unit | |
| parent | 970c849cc70ccb8a016c9834daef70d28e224ae9 (diff) | |
| download | PROJ-2594b3a2240db7d7007e1c98f08762613b7f7e73.tar.gz PROJ-2594b3a2240db7d7007e1c98f08762613b7f7e73.zip | |
Add mapping between EPSG method 'Hyperbolic Cassini-Soldner' and +proj=cass +hyperbolic
Diffstat (limited to 'test/unit')
| -rw-r--r-- | test/unit/test_operation.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unit/test_operation.cpp b/test/unit/test_operation.cpp index 6ddbd9f4..2830ea94 100644 --- a/test/unit/test_operation.cpp +++ b/test/unit/test_operation.cpp @@ -4223,6 +4223,18 @@ TEST(operation, adams_ws2_export_failure) { // --------------------------------------------------------------------------- +TEST(operation, hyperbolic_cassini_soldner) { + auto dbContext = DatabaseContext::create(); + auto crs = + AuthorityFactory::create(dbContext, "EPSG")->createProjectedCRS("3139"); + EXPECT_EQ(crs->exportToPROJString(PROJStringFormatter::create().get()), + "+proj=cass +hyperbolic +lat_0=-16.25 +lon_0=179.333333333333 " + "+x_0=251727.9155424 +y_0=334519.953768 " + "+a=6378306.3696 +b=6356571.996 +units=link +no_defs +type=crs"); +} + +// --------------------------------------------------------------------------- + TEST(operation, PROJ_based) { auto conv = SingleOperation::createPROJBased(PropertyMap(), "+proj=merc", nullptr, nullptr); |
