OTB  10.0.0
Orfeo Toolbox
otbCosmoImageMetadataInterface.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2024 Centre National d'Etudes Spatiales (CNES)
3  *
4  * This file is part of Orfeo Toolbox
5  *
6  * https://www.orfeo-toolbox.org/
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 #ifndef otbCosmoImageMetadataInterface_h
22 #define otbCosmoImageMetadataInterface_h
23 
25 #include "otbSARMetadata.h"
26 
27 namespace otb
28 {
37 class OTBMetadata_EXPORT CosmoImageMetadataInterface : public SarImageMetadataInterface
38 {
39 public:
42  typedef itk::SmartPointer<Self> Pointer;
43  typedef itk::SmartPointer<const Self> ConstPointer;
44 
46  itkNewMacro(Self);
47 
48 
51 
58 
59  double GetCenterIncidenceAngle(const MetadataSupplierInterface&) const override;
60 
61  void Parse(ImageMetadata &) override;
62 
63  void ParseGdal(ImageMetadata &) override;
64 
65  void ParseGeom(ImageMetadata &) override;
66 
67  std::vector<std::map<std::string, std::string> > saveMetadataBands(std::string file) ;
68 
69  std::vector<Orbit> getOrbits(const std::string & referenceTime) const;
70 
71  std::vector<BurstRecord> CreateBurstRecord(const std::string & firstLineTimeStr,
72  const std::string & lastLineTimeStr,
73  const unsigned long endLine,
74  const unsigned long endSample) const;
75 
76 protected:
77  /* class ctor */
79 
80  /* class dtor */
82 
83 private:
85  void operator=(const Self&) = delete;
86 };
87 
88 
89 } // end namespace otb
90 
91 #endif
Creation of an "otb" CosmoImageMetadataInterface that gets metadata.
itk::SmartPointer< const Self > ConstPointer
Superclass::MetaDataDictionaryType MetaDataDictionaryType
double GetCenterIncidenceAngle(const MetadataSupplierInterface &) const override
void operator=(const Self &)=delete
Superclass::LookupDataPointerType LookupDataPointerType
std::vector< BurstRecord > CreateBurstRecord(const std::string &firstLineTimeStr, const std::string &lastLineTimeStr, const unsigned long endLine, const unsigned long endSample) const
void ParseGeom(ImageMetadata &) override
void ParseGdal(ImageMetadata &) override
Superclass::VariableLengthVectorType VariableLengthVectorType
CosmoImageMetadataInterface(const Self &)=delete
std::vector< Orbit > getOrbits(const std::string &referenceTime) const
std::vector< std::map< std::string, std::string > > saveMetadataBands(std::string file)
void Parse(ImageMetadata &) override
Generic class containing image metadata used in OTB.
Base class to access metadata information in files/images.
Class for SAR captor metadata reading.
Superclass::MetaDataDictionaryType MetaDataDictionaryType
Superclass::VariableLengthVectorType VariableLengthVectorType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.