diff options
| -rw-r--r-- | src/iso19111/io.cpp | 2 | ||||
| -rw-r--r-- | test/unit/test_io.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/iso19111/io.cpp b/src/iso19111/io.cpp index dfc1aa27..868095d4 100644 --- a/src/iso19111/io.cpp +++ b/src/iso19111/io.cpp @@ -9230,7 +9230,7 @@ PROJStringParser::createFromPROJString(const std::string &projString) { bool hasSignificantParamValues = false; for (const auto &kv : d->steps_[0].paramValues) { if (!((kv.key == "type" && kv.value == "crs") || - kv.key == "no_defs")) { + kv.key == "wktext" || kv.key == "no_defs")) { hasSignificantParamValues = true; break; } diff --git a/test/unit/test_io.cpp b/test/unit/test_io.cpp index 6cdd3014..c95b1b57 100644 --- a/test/unit/test_io.cpp +++ b/test/unit/test_io.cpp @@ -9167,8 +9167,8 @@ TEST(io, projparse_init) { { // Test that +no_defs +type=crs have no effect - auto obj = createFromUserInput("+init=epsg:4326 +no_defs +type=crs", - dbContext, true); + auto obj = createFromUserInput( + "+init=epsg:4326 +no_defs +type=crs +wktext", dbContext, true); auto crs = nn_dynamic_pointer_cast<GeographicCRS>(obj); ASSERT_TRUE(crs != nullptr); |
