aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_io.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-09-11 15:55:17 +0200
committerEven Rouault <even.rouault@spatialys.com>2019-09-15 13:20:43 +0200
commit0673f88a96adcabf3a21ed02c182bb94f50fcf89 (patch)
treea7842dcf3d3dacdce0962f8642f1798c68c84e6a /test/unit/test_io.cpp
parent6dcbdb941c0e1faef8f60a80c6c3aab483850bcb (diff)
downloadPROJ-0673f88a96adcabf3a21ed02c182bb94f50fcf89.tar.gz
PROJ-0673f88a96adcabf3a21ed02c182bb94f50fcf89.zip
Ingestion of +proj=somerc +type=crs: avoid adding twice alpha, gamma, lon_0 (related to #1597)
Diffstat (limited to 'test/unit/test_io.cpp')
-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 872038fc..2642ed23 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;
}
// ---------------------------------------------------------------------------