![]() |
OTB
9.1.1
Orfeo Toolbox
|
#include <otbImageMetadata.h>
Inheritance diagram for otb::ImageMetadataBase:Public Types | |
| template<class TKey , class TVal > | |
| using | DictType = std::map< TKey, TVal > |
| using | Keywordlist = std::unordered_map< std::string, std::string > |
Public Member Functions | |
| void | Add (const std::string &key, const std::string &value) |
| void | Add (MDGeom key, const boost::any &value) |
| void | Add (MDL1D key, const MetaData::LUT1D &value) |
| void | Add (MDL2D key, const MetaData::LUT2D &value) |
| void | Add (MDNum key, const double &value) |
| void | Add (MDStr key, const std::string &value) |
| void | Add (MDTime key, const MetaData::TimePoint &value) |
| bool | FromKeywordlist (const Keywordlist &) |
| void | Fuse (const ImageMetadataBase &) |
| std::vector< unsigned int > | GetDefaultDisplay () const |
| const Projection::GCPParam & | GetGCPParam () const |
| std::string | GetKeyListL1D () const |
| std::string | GetKeyListNum () const |
| std::string | GetKeyListStr () const |
| std::string | GetKeyListTime () const |
| std::string | GetProjectedGeometry () const |
| std::string | GetProjectionProj () const |
| std::string | GetProjectionWKT () const |
| const Projection::RPCParam & | GetRPCParam () const |
| const SARParam & | GetSARParam () const |
| int | GetSize () const |
| const Spot5Param & | GetSpot5Param () const |
| bool | Has (const std::string &key) const |
| bool | Has (MDGeom key) const |
| bool | Has (MDL1D key) const |
| bool | Has (MDL2D key) const |
| bool | Has (MDNum key) const |
| bool | Has (MDStr key) const |
| bool | Has (MDTime key) const |
| bool | HasProjectedGeometry () const |
| bool | HasSensorGeometry () const |
| ImageMetadataBase ()=default | |
| ImageMetadataBase (DictType< MDGeom, boost::any > geometryKeys, DictType< MDNum, double > numericKeys, DictType< MDStr, std::string > stringKeys, DictType< MDL1D, MetaData::LUT1D > lut1DKeys, DictType< MDL2D, MetaData::LUT2D > lut2DKeys, DictType< MDTime, MetaData::TimePoint > timeKeys, DictType< std::string, std::string > extraKeys) | |
| const std::string & | operator[] (const std::string &key) const |
| const boost::any & | operator[] (MDGeom key) const |
| const MetaData::LUT1D & | operator[] (MDL1D key) const |
| const MetaData::LUT2D & | operator[] (MDL2D key) const |
| const double & | operator[] (MDNum key) const |
| const std::string & | operator[] (MDStr key) const |
| const MetaData::TimePoint & | operator[] (MDTime key) const |
| vcl_size_t | Remove (const std::string &key) |
| vcl_size_t | Remove (MDGeom key) |
| vcl_size_t | Remove (MDL1D key) |
| vcl_size_t | Remove (MDL2D key) |
| vcl_size_t | Remove (MDNum key) |
| vcl_size_t | Remove (MDStr key) |
| vcl_size_t | Remove (MDTime key) |
| vcl_size_t | RemoveProjectedGeometry () |
| vcl_size_t | RemoveSensorGeometry () |
| std::string | ToJSON (bool multiline=false) const |
| void | ToKeywordlist (Keywordlist &) const |
Public Attributes | |
| DictType< std::string, std::string > | ExtraKeys |
| DictType< MDGeom, boost::any > | GeometryKeys |
| DictType< MDL1D, MetaData::LUT1D > | LUT1DKeys |
| DictType< MDL2D, MetaData::LUT2D > | LUT2DKeys |
| DictType< MDNum, double > | NumericKeys |
| DictType< MDStr, std::string > | StringKeys |
| DictType< MDTime, MetaData::TimePoint > | TimeKeys |
Metadata hybrid dictionary.
Contains a dict of geometry parameters, several typed dictionaries for double, string, and other types. The different metadatas are retrieved with enum classes ( one for each type stored in the dictionary).
Definition at line 50 of file otbImageMetadata.h.
| using otb::ImageMetadataBase::DictType = std::map<TKey, TVal> |
type of dictionary used internally
Definition at line 55 of file otbImageMetadata.h.
| using otb::ImageMetadataBase::Keywordlist = std::unordered_map<std::string, std::string> |
Definition at line 57 of file otbImageMetadata.h.
|
default |
| otb::ImageMetadataBase::ImageMetadataBase | ( | DictType< MDGeom, boost::any > | geometryKeys, |
| DictType< MDNum, double > | numericKeys, | ||
| DictType< MDStr, std::string > | stringKeys, | ||
| DictType< MDL1D, MetaData::LUT1D > | lut1DKeys, | ||
| DictType< MDL2D, MetaData::LUT2D > | lut2DKeys, | ||
| DictType< MDTime, MetaData::TimePoint > | timeKeys, | ||
| DictType< std::string, std::string > | extraKeys | ||
| ) |
| void otb::ImageMetadataBase::Add | ( | const std::string & | key, |
| const std::string & | value | ||
| ) |
Setter for extra keys
| void otb::ImageMetadataBase::Add | ( | MDGeom | key, |
| const boost::any & | value | ||
| ) |
Setter for geometric keys
| void otb::ImageMetadataBase::Add | ( | MDL1D | key, |
| const MetaData::LUT1D & | value | ||
| ) |
Setter for 1D LUT keys
| void otb::ImageMetadataBase::Add | ( | MDL2D | key, |
| const MetaData::LUT2D & | value | ||
| ) |
Setter for 2D LUT keys
| void otb::ImageMetadataBase::Add | ( | MDNum | key, |
| const double & | value | ||
| ) |
Setter for numeric keys
| void otb::ImageMetadataBase::Add | ( | MDStr | key, |
| const std::string & | value | ||
| ) |
Setter for string keys
| void otb::ImageMetadataBase::Add | ( | MDTime | key, |
| const MetaData::TimePoint & | value | ||
| ) |
Setter for time keys
| bool otb::ImageMetadataBase::FromKeywordlist | ( | const Keywordlist & | ) |
Import metadata from a string keywordlist. Will skip MDGeom::SensorGeometry, MDGeom::RPC and MDGeom::GCP. Returns True if all keywords were parsed correctly.
| void otb::ImageMetadataBase::Fuse | ( | const ImageMetadataBase & | ) |
Merge with another ImageMetadataBase If a key exists in both ImageMetadataBase, keeps the value of this ImageMetadataBase.
| std::vector<unsigned int> otb::ImageMetadataBase::GetDefaultDisplay | ( | ) | const |
Return the band that should be displayed by default, using the information contained in the input ImageMetadata (MDNum::RedDisplayChannel, GreenDisplayChannel and BlueDisplayChannel) the first channel being indexed as 0. If no information is available the default order (0,1,2) is returned instead
| const Projection::GCPParam& otb::ImageMetadataBase::GetGCPParam | ( | ) | const |
| std::string otb::ImageMetadataBase::GetKeyListL1D | ( | ) | const |
Return the list of valid keys
| std::string otb::ImageMetadataBase::GetKeyListNum | ( | ) | const |
Return the list of valid keys
| std::string otb::ImageMetadataBase::GetKeyListStr | ( | ) | const |
Return the list of valid keys
| std::string otb::ImageMetadataBase::GetKeyListTime | ( | ) | const |
Return the list of valid keys
| std::string otb::ImageMetadataBase::GetProjectedGeometry | ( | ) | const |
| std::string otb::ImageMetadataBase::GetProjectionProj | ( | ) | const |
| std::string otb::ImageMetadataBase::GetProjectionWKT | ( | ) | const |
| const Projection::RPCParam& otb::ImageMetadataBase::GetRPCParam | ( | ) | const |
| const SARParam& otb::ImageMetadataBase::GetSARParam | ( | ) | const |
| int otb::ImageMetadataBase::GetSize | ( | ) | const |
Return the number of elements in the ImageMetadataBase
| const Spot5Param& otb::ImageMetadataBase::GetSpot5Param | ( | ) | const |
| bool otb::ImageMetadataBase::Has | ( | const std::string & | key | ) | const |
Test if a key is available
| bool otb::ImageMetadataBase::Has | ( | MDGeom | key | ) | const |
Test if a key is available
Referenced by otb::ImageFileReader< TOutputImage, ConvertPixelTraits >::GenerateOutputInformation(), otb::TransformFactories::RPCForwardTransformFactory(), otb::TransformFactories::RPCInverseTransformFactory(), otb::TransformFactories::SARForwardTransformFactory(), otb::TransformFactories::SARInverseTransformFactory(), otb::Spot5TransformBase< TScalarType, 3, 2 >::SetMetadata(), otb::RPCTransformBase< TScalarType, 3, 2 >::SetMetadata(), otb::SarTransformBase< TScalarType, 3, 2 >::SetMetadata(), otb::TransformFactories::Spot5ForwardTransformFactory(), and otb::TransformFactories::Spot5InverseTransformFactory().
| bool otb::ImageMetadataBase::Has | ( | MDL1D | key | ) | const |
Test if a key is available
| bool otb::ImageMetadataBase::Has | ( | MDL2D | key | ) | const |
Test if a key is available
| bool otb::ImageMetadataBase::Has | ( | MDNum | key | ) | const |
Test if a key is available
| bool otb::ImageMetadataBase::Has | ( | MDStr | key | ) | const |
Test if a key is available
| bool otb::ImageMetadataBase::Has | ( | MDTime | key | ) | const |
Test if a key is available
| bool otb::ImageMetadataBase::HasProjectedGeometry | ( | ) | const |
| bool otb::ImageMetadataBase::HasSensorGeometry | ( | ) | const |
| const std::string& otb::ImageMetadataBase::operator[] | ( | const std::string & | key | ) | const |
Read-only accessor to extra keys
| const boost::any& otb::ImageMetadataBase::operator[] | ( | MDGeom | key | ) | const |
Read-only accessor to geometric keys
| const MetaData::LUT1D& otb::ImageMetadataBase::operator[] | ( | MDL1D | key | ) | const |
Read-only accessor to 1D LUT keys
| const MetaData::LUT2D& otb::ImageMetadataBase::operator[] | ( | MDL2D | key | ) | const |
Read-only accessor to 2D LUT keys
| const double& otb::ImageMetadataBase::operator[] | ( | MDNum | key | ) | const |
Read-only accessor to numeric keys
| const std::string& otb::ImageMetadataBase::operator[] | ( | MDStr | key | ) | const |
Read-only accessor to string keys
| const MetaData::TimePoint& otb::ImageMetadataBase::operator[] | ( | MDTime | key | ) | const |
Return the list of valid keys Read-only accessor to time keys
| vcl_size_t otb::ImageMetadataBase::Remove | ( | const std::string & | key | ) |
Remove a key from the dictionary (even if the key is already missing)
| vcl_size_t otb::ImageMetadataBase::Remove | ( | MDGeom | key | ) |
Remove a key from the dictionary (even if the key is already missing)
| vcl_size_t otb::ImageMetadataBase::Remove | ( | MDL1D | key | ) |
Remove a key from the dictionary (even if the key is already missing)
| vcl_size_t otb::ImageMetadataBase::Remove | ( | MDL2D | key | ) |
Remove a key from the dictionary (even if the key is already missing)
| vcl_size_t otb::ImageMetadataBase::Remove | ( | MDNum | key | ) |
Remove a key from the dictionary (even if the key is already missing)
| vcl_size_t otb::ImageMetadataBase::Remove | ( | MDStr | key | ) |
Remove a key from the dictionary (even if the key is already missing)
| vcl_size_t otb::ImageMetadataBase::Remove | ( | MDTime | key | ) |
Remove a key from the dictionary (even if the key is already missing)
| vcl_size_t otb::ImageMetadataBase::RemoveProjectedGeometry | ( | ) |
| vcl_size_t otb::ImageMetadataBase::RemoveSensorGeometry | ( | ) |
| std::string otb::ImageMetadataBase::ToJSON | ( | bool | multiline = false | ) | const |
Format the metadata to JSON
| void otb::ImageMetadataBase::ToKeywordlist | ( | Keywordlist & | ) | const |
Fill a KeywordList with the metadata
| DictType<std::string, std::string> otb::ImageMetadataBase::ExtraKeys |
Definition at line 92 of file otbImageMetadata.h.
Stack of geometry parameters, sorted by decreasing priority Cases with corresponding enum values:
Corner cases we may encounter:
Definition at line 80 of file otbImageMetadata.h.
| DictType<MDL1D, MetaData::LUT1D> otb::ImageMetadataBase::LUT1DKeys |
Definition at line 86 of file otbImageMetadata.h.
| DictType<MDL2D, MetaData::LUT2D> otb::ImageMetadataBase::LUT2DKeys |
Definition at line 88 of file otbImageMetadata.h.
Definition at line 82 of file otbImageMetadata.h.
Definition at line 84 of file otbImageMetadata.h.
| DictType<MDTime, MetaData::TimePoint> otb::ImageMetadataBase::TimeKeys |
Definition at line 90 of file otbImageMetadata.h.
1.8.17