Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
bfe12232
Commit
bfe12232
authored
14 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
ENH: add clearing capability in ImageKeywordlist (used in Monteverdi)
parent
1b56ef24
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/IO/otbImageKeywordlist.cxx
+8
-0
8 additions, 0 deletions
Code/IO/otbImageKeywordlist.cxx
Code/IO/otbImageKeywordlist.h
+3
-0
3 additions, 0 deletions
Code/IO/otbImageKeywordlist.h
with
11 additions
and
0 deletions
Code/IO/otbImageKeywordlist.cxx
+
8
−
0
View file @
bfe12232
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Code/IO/otbImageKeywordlist.h
+
3
−
0
View file @
bfe12232
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment