diff --git a/src/iso19111/metadata.cpp b/src/iso19111/metadata.cpp index fc788a307b..e8ce37c608 100644 --- a/src/iso19111/metadata.cpp +++ b/src/iso19111/metadata.cpp @@ -1124,7 +1124,7 @@ void Identifier::_exportToJSON(JSONFormatter *formatter) const { //! @cond Doxygen_Suppress static bool isIgnoredChar(char ch) { return ch == ' ' || ch == '_' || ch == '-' || ch == '/' || ch == '(' || - ch == ')' || ch == '.' || ch == '&'; + ch == ')' || ch == '.' || ch == '&' || ch == ','; } //! @endcond diff --git a/test/unit/test_metadata.cpp b/test/unit/test_metadata.cpp index e12788b498..7cbc7de75d 100644 --- a/test/unit/test_metadata.cpp +++ b/test/unit/test_metadata.cpp @@ -391,4 +391,8 @@ TEST(metadata, Identifier_isEquivalentName) { EXPECT_TRUE(Identifier::isEquivalentName("a", "\xc3\xa1")); EXPECT_TRUE(Identifier::isEquivalentName("\xc3\xa4", "\xc3\xa1")); + + EXPECT_TRUE(Identifier::isEquivalentName( + "Unknown based on International 1924 (Hayford 1909, 1910) ellipsoid", + "Unknown_based_on_International_1924_Hayford_1909_1910_ellipsoid")); }