|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
21 #ifndef otbMetadataDataHelper_h
22 #define otbMetadataDataHelper_h
24 #include "OTBMetadataExport.h"
114 const std::string & prefix,
115 const std::string & name,
116 std::vector<T> & dest)
120 std::vector<std::string> mdStr;
122 bool hasValue =
false;
127 mdStr.push_back(value);
135 value = mds.
GetMetadataValue(prefix +
"_" + std::to_string(i) +
"." + name, hasValue);
137 mdStr.push_back(value);
145 <<
"Missing metadata '"<< prefix + name <<
"'")
148 for (
const auto & elem : mdStr)
152 dest.push_back(boost::lexical_cast<T>(elem));
154 catch (boost::bad_lexical_cast&)
166 const std::string & prefix,
167 const std::string & name,
168 std::vector<T> & dest,
169 std::vector<T> & defaultValue)
174 std::vector<std::string> mdStr;
176 bool hasValue =
false;
181 mdStr.push_back(value);
189 value = mds.
GetMetadataValue(prefix +
"_" + std::to_string(i) +
"." + name, hasValue);
191 mdStr.push_back(value);
201 for (
const auto & elem : mdStr)
205 dest.push_back(boost::lexical_cast<T>(elem));
207 catch (boost::bad_lexical_cast&)
216 const std::string & prefix,
217 const std::string & name)
219 std::vector<T> vector;
220 ParseVector(mds, prefix, name, vector);
std::vector< double > PhysicalBias
std::string TimeRangeStart
std::vector< double > AcrossTrackViewingAngle
std::string ProcessingLevel
std::vector< double > SolarIrradiance
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
std::vector< double > ViewingAngle
std::vector< double > AlongTrackIncidenceAngle
std::vector< double > AzimuthAngle
std::string ProductionDate
std::vector< double > PhysicalGain
std::vector< double > AlongTrackViewingAngle
std::string InstrumentIndex
std::vector< double > SceneOrientation
std::string softwareVersion
std::vector< double > SunAzimuth
std::vector< double > SunElevation
#define otbGenericExceptionMacro(T, x)
std::string AcquisitionDate
std::vector< double > AcrossTrackIncidenceAngle
std::string SpectralProcessing
std::vector< double > IncidenceAngle
Struct containing metadata parsed from a Dimap product.
std::string SwathFirstCol
std::vector< std::string > BandIDs