aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-11-03 00:22:15 +0100
committerEven Rouault <even.rouault@spatialys.com>2021-11-03 00:22:18 +0100
commitc3d8ca54fbf0004dbaaa85a4562888a614866507 (patch)
tree8e55e50e5dace44423b68f43df08663d283aa625 /test
parent13648e8e820fb8918740d62b56beb17693d1e75e (diff)
downloadPROJ-c3d8ca54fbf0004dbaaa85a4562888a614866507.tar.gz
PROJ-c3d8ca54fbf0004dbaaa85a4562888a614866507.zip
BoundCRS WKT import: fix setting of name
Name was erroneously set (since 8.2.0) to SOURCECRS. Raised in https://lists.osgeo.org/pipermail/gdal-dev/2021-November/054944.html
Diffstat (limited to 'test')
-rw-r--r--test/unit/test_crs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unit/test_crs.cpp b/test/unit/test_crs.cpp
index 500ff4a4..c44d2d38 100644
--- a/test/unit/test_crs.cpp
+++ b/test/unit/test_crs.cpp
@@ -4680,6 +4680,7 @@ TEST(crs, boundCRS_with_usage) {
auto crs =
nn_dynamic_pointer_cast<BoundCRS>(WKTParser().createFromWKT(wkt));
ASSERT_TRUE(crs != nullptr);
+ EXPECT_EQ(crs->nameStr(), "Monte Mario / Italy zone 2");
auto got_wkt = crs->exportToWKT(
WKTFormatter::create(WKTFormatter::Convention::WKT2_2019).get());