21 #ifndef otbImageMetadataInterfaceBase_h 22 #define otbImageMetadataInterfaceBase_h 27 #include "itkMetaDataDictionary.h" 29 #include "itkImageBase.h" 31 #include "OTBMetadataExport.h" 67 this->SetMetaDataDictionary(image->GetMetaDataDictionary());
73 m_MetaDataDictionary = dict;
79 return m_MetaDataDictionary;
83 std::string GetProjectionRef()
const;
86 std::string GetGCPProjection()
const;
90 UnsignedIntType GetGCPCount()
const;
93 OTB_GCP& GetGCPs(
unsigned int GCPnum);
96 std::string GetGCPId(
unsigned int GCPnum)
const;
99 std::string GetGCPInfo(
unsigned int GCPnum)
const;
102 double GetGCPRow(
unsigned int GCPnum)
const;
105 double GetGCPCol(
unsigned int GCPnum)
const;
108 double GetGCPX(
unsigned int GCPnum)
const;
111 double GetGCPY(
unsigned int GCPnum)
const;
114 double GetGCPZ(
unsigned int GCPnum)
const;
121 bool GetNoDataFlags(std::vector<bool>& flags, std::vector<double>& values)
const;
125 VectorType GetGeoTransform()
const;
130 VectorType GetUpperLeftCorner()
const;
133 VectorType GetUpperRightCorner()
const;
136 VectorType GetLowerLeftCorner()
const;
139 VectorType GetLowerRightCorner()
const;
143 ImageKeywordlistType GetImageKeywordlist();
145 const ImageKeywordlistType GetImageKeywordlist()
const;
149 std::string
const GetSensorID()
const;
154 bool GetSensorID(std::string& sensorId)
const;
161 UnsignedIntType GetNumberOfBands()
const;
168 StringVectorType GetBandName()
const;
173 double GetXPixelSpacing()
const;
178 double GetYPixelSpacing()
const;
185 virtual int GetDay()
const = 0;
192 virtual int GetMonth()
const = 0;
199 virtual int GetYear()
const = 0;
206 virtual int GetHour()
const = 0;
213 virtual int GetMinute()
const = 0;
220 virtual int GetProductionDay()
const = 0;
227 virtual int GetProductionMonth()
const = 0;
234 virtual int GetProductionYear()
const = 0;
241 virtual StringVectorType GetEnhancedBandNames()
const = 0;
245 virtual UIntVectorType GetDefaultDisplay()
const = 0;
247 virtual bool CanRead()
const = 0;
249 static void PrintMetadata(std::ostream& os, itk::Indent indent,
const MetaDataDictionaryType& dict);
257 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
263 void operator=(
const Self&) =
delete;
Storage and conversion for OSSIM metadata.
This OTB_GCP class is used to manage the GCP parameters in OTB.
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.