Skip to content
Snippets Groups Projects
Commit bfe12232 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

ENH: add clearing capability in ImageKeywordlist (used in Monteverdi)

parent 1b56ef24
No related branches found
No related tags found
No related merge requests found
...@@ -83,6 +83,14 @@ GetMetadataByKey(const std::string& key) const ...@@ -83,6 +83,14 @@ GetMetadataByKey(const std::string& key) const
// Then if everything is ok, return the ossinString // Then if everything is ok, return the ossinString
return it->second; return it->second;
} }
void
ImageKeywordlist::
ClearMetadataByKey(const std::string& key)
{
m_Keywordlist[key] = "";
}
void void
ImageKeywordlist:: ImageKeywordlist::
convertToOSSIMKeywordlist(ossimKeywordlist& kwl) const convertToOSSIMKeywordlist(ossimKeywordlist& kwl) const
......
...@@ -74,6 +74,9 @@ public: ...@@ -74,6 +74,9 @@ public:
/** Get the Data object descriptor corresponding to the given key */ /** Get the Data object descriptor corresponding to the given key */
const std::string& GetMetadataByKey(const std::string& key) const; const std::string& GetMetadataByKey(const std::string& key) const;
/** Clear a given field of the keyword list */
virtual void ClearMetadataByKey(const std::string& key);
virtual void convertToOSSIMKeywordlist(ossimKeywordlist& kwl) const; virtual void convertToOSSIMKeywordlist(ossimKeywordlist& kwl) const;
virtual void Print(std::ostream& os, itk::Indent indent = 0) const; virtual void Print(std::ostream& os, itk::Indent indent = 0) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment