aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-09-11 13:55:17 +0000
committerEven Rouault <even.rouault@spatialys.com>2019-09-15 11:20:43 +0000
commitb7e7a3bd4a85ce07cc9dee457f3c44be43950084 (patch)
treebf216d1fe3fe144cf03cc84ffba1f1d92e022339 /test
parenteb5906bb14afba3a5a5508314cfcaa661b75d29d (diff)
downloadPROJ-b7e7a3bd4a85ce07cc9dee457f3c44be43950084.tar.gz
PROJ-b7e7a3bd4a85ce07cc9dee457f3c44be43950084.zip
Ingestion of +proj=somerc +type=crs: avoid adding twice alpha, gamma, lon_0 (related to #1597)
Diffstat (limited to 'test')
-rw-r--r--test/unit/test_io.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/test_io.cpp b/test/unit/test_io.cpp
index 7930ff53..46318ffb 100644
--- a/test/unit/test_io.cpp
+++ b/test/unit/test_io.cpp
@@ -7800,6 +7800,10 @@ TEST(io, projparse_somerc) {
EXPECT_TRUE(wkt.find("\"Northing at projection centre\",5") !=
std::string::npos)
<< wkt;
+
+ auto wkt1 = crs->exportToWKT(
+ WKTFormatter::create(WKTFormatter::Convention::WKT1_GDAL).get());
+ EXPECT_TRUE(wkt1.find("EXTENSION") == std::string::npos) << wkt1;
}
// ---------------------------------------------------------------------------