aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_operation.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-04-03 21:59:05 +0200
committerGitHub <noreply@github.com>2021-04-03 21:59:05 +0200
commitb6210a0e25f9810c4af747de492920eb422fb259 (patch)
treefe9a53e6a1969ac0435b6dc4f06aed5763b62055 /test/unit/test_operation.cpp
parent722cf8840c390fa9c5bb34d6a882cf072dd77044 (diff)
parent2594b3a2240db7d7007e1c98f08762613b7f7e73 (diff)
downloadPROJ-b6210a0e25f9810c4af747de492920eb422fb259.tar.gz
PROJ-b6210a0e25f9810c4af747de492920eb422fb259.zip
Merge pull request #2637 from rouault/hyperbolic_cass
Add support for hyperbolic Cassini-Soldner
Diffstat (limited to 'test/unit/test_operation.cpp')
-rw-r--r--test/unit/test_operation.cpp12
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);