aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_operation.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-01-11 00:25:51 +0100
committerEven Rouault <even.rouault@spatialys.com>2020-01-11 00:36:10 +0100
commitd2674e044505d0fcee920f5c0315d8db6b842caa (patch)
tree169d397482121ee5582a9aa48502cc72ef8f1ac9 /test/unit/test_operation.cpp
parent39ffdcadbd16fdfbf961973be94ae8479441e411 (diff)
downloadPROJ-d2674e044505d0fcee920f5c0315d8db6b842caa.tar.gz
PROJ-d2674e044505d0fcee920f5c0315d8db6b842caa.zip
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 b2cae6df..bcbffc83 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"