 |
OTB
9.1.1
Orfeo Toolbox
|
Go to the documentation of this file.
21 #ifndef otbImageMetadata_h
22 #define otbImageMetadata_h
27 #include "OTBMetadataExport.h"
31 #include <boost/any.hpp>
35 #include <unordered_map>
54 template <
class TKey,
class TVal>
57 using Keywordlist = std::unordered_map<std::string, std::string>;
107 const boost::any & operator[](
MDGeom key)
const;
111 const SARParam & GetSARParam()
const;
114 std::string GetProjectedGeometry()
const;
116 std::string GetProjectionWKT()
const;
118 std::string GetProjectionProj()
const;
121 void Add(
MDGeom key,
const boost::any &value);
124 size_t Remove(
MDGeom key);
126 size_t RemoveSensorGeometry();
128 size_t RemoveProjectedGeometry();
131 bool Has(
MDGeom key)
const;
133 bool HasSensorGeometry()
const;
135 bool HasProjectedGeometry()
const;
140 const double & operator[](
MDNum key)
const;
143 void Add(
MDNum key,
const double &value);
146 size_t Remove(
MDNum key);
149 bool Has(
MDNum key)
const;
152 std::string GetKeyListNum()
const;
157 const std::string & operator[](
MDStr key)
const;
160 void Add(
MDStr key,
const std::string &value);
163 size_t Remove(
MDStr key);
166 bool Has(
MDStr key)
const;
169 std::string GetKeyListStr()
const;
180 size_t Remove(
MDL1D key);
183 bool Has(
MDL1D key)
const;
186 std::string GetKeyListL1D()
const;
197 size_t Remove(
MDL2D key);
200 bool Has(
MDL2D key)
const;
214 size_t Remove(
MDTime key);
217 bool Has(
MDTime key)
const;
220 std::string GetKeyListTime()
const;
225 const std::string & operator[](
const std::string & key)
const;
228 void Add(
const std::string& key,
const std::string &value);
231 size_t Remove(
const std::string& key);
234 bool Has(
const std::string& key)
const;
242 std::string ToJSON(
bool multiline=
false)
const;
258 std::vector<unsigned int> GetDefaultDisplay()
const;
333 itk::VariableLengthVector<double> GetAsVector(
MDNum key)
const;
336 bool HasBandMetadata(
MDNum key)
const;
339 bool HasBandMetadata(
MDL1D key)
const;
343 std::vector<std::string> GetBandNames()
const;
347 std::vector<std::string> GetEnhancedBandNames()
const;
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
bool HasSameSensorModel(const ImageMetadataBase &a, const ImageMetadataBase &b)
bool HasSameRPCModel(const ImageMetadataBase &a, const ImageMetadataBase &b)
OTBMetadata_EXPORT bool HasSARSensorMetadata(const ImageMetadata &imd)
OTBCommon_EXPORT std::ostream & operator<<(std::ostream &os, const otb::StringToHTML &str)
Coefficients for RPC model (quite similar to GDALRPCInfo)
OTBMetadata_EXPORT bool HasOpticalSensorMetadata(const ImageMetadata &imd)
Spot5 sensors parameters.
This structure handles the list of the GCP parameters.
OTBMetadata_EXPORT void WriteImageMetadataToGeomFile(const ImageMetadata &imd, const std::string &filename)
bool HasSameSARModel(const ImageMetadataBase &a, const ImageMetadataBase &b)