Implement a GetSize() function for the ImageMetadata class
Summary
Add a GetSize()
function to ImageMetadataBase
and ImageMetadata
.
Rationale
Fix #2237 (closed)
Implementation Details
Classes and files
Update the class ImageMetadataBase
that return the count of key:value pairs contained in the metadata maps (NumericKeys
, StringKeys
, etc).
Update the class ImageMetadata
that return the count of key:value pairs contained in all bands and base object.
Tests
Add a test for this functions.
Copyright
The copyright owner is CNES and has signed the ORFEO ToolBox Contributor License Agreement.
Check before merging:
- All discussions are resolved
- At least 2
👍 votes from core developers, no👎 vote. - The feature branch is (reasonably) up-to-date with the base branch
- Dashboard is green
- Copyright owner has signed the ORFEO ToolBox Contributor License Agreement
- Optionally, run
git diff develop... -U0 --no-color | clang-format-diff.py -p1 -i
on latest changes and commit