aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_operation.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-01-22 14:36:16 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-01-22 14:36:16 +0100
commitb172b29fa0e1dac18270b41dde81df2759521c16 (patch)
treecab080da91a3f7733ed44cf952eb32d8f61f67a4 /test/unit/test_operation.cpp
parentc048292f3b8e408e6a81700a74d9b44d532227ac (diff)
downloadPROJ-b172b29fa0e1dac18270b41dde81df2759521c16.tar.gz
PROJ-b172b29fa0e1dac18270b41dde81df2759521c16.zip
ISO19111 PROJ string parser: discard parameters not recognized by PROJ
Diffstat (limited to 'test/unit/test_operation.cpp')
-rw-r--r--test/unit/test_operation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/test_operation.cpp b/test/unit/test_operation.cpp
index ed31f155..01c6a38f 100644
--- a/test/unit/test_operation.cpp
+++ b/test/unit/test_operation.cpp
@@ -6323,8 +6323,8 @@ TEST(operation, createOperation_fallback_to_proj4_strings) {
TEST(operation, createOperation_on_crs_with_bound_crs_and_wktext) {
auto objSrc = PROJStringParser().createFromPROJString(
"+proj=utm +zone=55 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 "
- "+units=m +no_defs +nadgrids=GDA94_GDA2020_conformal.gsb "
- "+type=crs");
+ "+units=m +no_defs +nadgrids=@GDA94_GDA2020_conformal.gsb +ignored1 "
+ "+ignored2=val +wktext +type=crs");
auto src = nn_dynamic_pointer_cast<CRS>(objSrc);
ASSERT_TRUE(src != nullptr);
@@ -6340,7 +6340,7 @@ TEST(operation, createOperation_on_crs_with_bound_crs_and_wktext) {
EXPECT_EQ(op->exportToPROJString(PROJStringFormatter::create().get()),
"+proj=pipeline +step +inv +proj=utm +zone=55 +south "
"+ellps=GRS80 +step +proj=hgridshift "
- "+grids=GDA94_GDA2020_conformal.gsb +step +proj=utm +zone=55 "
+ "+grids=@GDA94_GDA2020_conformal.gsb +step +proj=utm +zone=55 "
"+south +ellps=GRS80");
}