aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_operation.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-01-11 12:01:59 +0100
committerGitHub <noreply@github.com>2020-01-11 12:01:59 +0100
commit1b7df035f9084096d7ffd49c26618dc0d8ac1c94 (patch)
tree16e9d42a37c876743516281b53f9eaf075658e01 /test/unit/test_operation.cpp
parent921541789ce1203875b36e2ac4726c0447b17a18 (diff)
parentd2674e044505d0fcee920f5c0315d8db6b842caa (diff)
downloadPROJ-1b7df035f9084096d7ffd49c26618dc0d8ac1c94.tar.gz
PROJ-1b7df035f9084096d7ffd49c26618dc0d8ac1c94.zip
Merge pull request #1838 from rouault/limit_datum_name_massaging_wkt1
WKT1_GDAL export: limit datum name massaging to names matching EPSG (fixes #1835)
Diffstat (limited to 'test/unit/test_operation.cpp')
-rw-r--r--test/unit/test_operation.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/test_operation.cpp b/test/unit/test_operation.cpp
index 316745f5..b2c13b6c 100644
--- a/test/unit/test_operation.cpp
+++ b/test/unit/test_operation.cpp
@@ -3258,7 +3258,9 @@ TEST(operation, webmerc_import_from_WKT2_EPSG_3785_deprecated) {
EXPECT_EQ(
crs->exportToWKT(
- WKTFormatter::create(WKTFormatter::Convention::WKT1_GDAL).get()),
+ WKTFormatter::create(WKTFormatter::Convention::WKT1_GDAL,
+ DatabaseContext::create())
+ .get()),
"PROJCS[\"Popular Visualisation CRS / Mercator\",\n"
" GEOGCS[\"Popular Visualisation CRS\",\n"
" DATUM[\"Popular_Visualisation_Datum\",\n"