OTB  9.0.0
Orfeo Toolbox
otbCosmoImageMetadataInterface.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2022 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 */
78  CosmoImageMetadataInterface() = default;
79 
80  /* class dtor */
81  ~CosmoImageMetadataInterface() = default;
82 
83 private:
84  CosmoImageMetadataInterface(const Self&) = delete;
85  void operator=(const Self&) = delete;
86 };
87 
88 
89 } // end namespace otb
90 
91 #endif
otb::SarImageMetadataInterface::VariableLengthVectorType
Superclass::VariableLengthVectorType VariableLengthVectorType
Definition: otbSarImageMetadataInterface.h:58
otb::CosmoImageMetadataInterface::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbCosmoImageMetadataInterface.h:42
otb::CosmoImageMetadataInterface::VectorType
Superclass::VectorType VectorType
Definition: otbCosmoImageMetadataInterface.h:54
otb::SarImageMetadataInterface::ImageType
Superclass::ImageType ImageType
Definition: otbSarImageMetadataInterface.h:51
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::CosmoImageMetadataInterface::RealType
Superclass::RealType RealType
Definition: otbCosmoImageMetadataInterface.h:56
otb::CosmoImageMetadataInterface::LookupDataPointerType
Superclass::LookupDataPointerType LookupDataPointerType
Definition: otbCosmoImageMetadataInterface.h:57
otbSARMetadata.h
otb::CosmoImageMetadataInterface::Superclass
SarImageMetadataInterface Superclass
Definition: otbCosmoImageMetadataInterface.h:41
otb::MetadataSupplierInterface
Base class to access metadata information in files/images.
Definition: otbMetadataSupplierInterface.h:40
otb::SarImageMetadataInterface::RealType
double RealType
Definition: otbSarImageMetadataInterface.h:63
otb::SarImageMetadataInterface::VectorType
Superclass::VectorType VectorType
Definition: otbSarImageMetadataInterface.h:57
otb::CosmoImageMetadataInterface::VariableLengthVectorType
Superclass::VariableLengthVectorType VariableLengthVectorType
Definition: otbCosmoImageMetadataInterface.h:55
otb::SarImageMetadataInterface::LookupDataPointerType
LookupDataType::Pointer LookupDataPointerType
Definition: otbSarImageMetadataInterface.h:66
otb::ImageMetadata
Generic class containing image metadata used in OTB.
Definition: otbImageMetadata.h:270
otb::CosmoImageMetadataInterface::ImageType
Superclass::ImageType ImageType
Definition: otbCosmoImageMetadataInterface.h:50
otb::CosmoImageMetadataInterface
Creation of an "otb" CosmoImageMetadataInterface that gets metadata.
Definition: otbCosmoImageMetadataInterface.h:37
otb::SarImageMetadataInterface
Class for SAR captor metadata reading.
Definition: otbSarImageMetadataInterface.h:42
otb::CosmoImageMetadataInterface::Self
CosmoImageMetadataInterface Self
Definition: otbCosmoImageMetadataInterface.h:40
otb::CosmoImageMetadataInterface::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbCosmoImageMetadataInterface.h:43
otbSarImageMetadataInterface.h
otb::CosmoImageMetadataInterface::MetaDataDictionaryType
Superclass::MetaDataDictionaryType MetaDataDictionaryType
Definition: otbCosmoImageMetadataInterface.h:53
otb::SarImageMetadataInterface::MetaDataDictionaryType
Superclass::MetaDataDictionaryType MetaDataDictionaryType
Definition: otbSarImageMetadataInterface.h:56