#include <otbGeomMetadataSupplier.h>
|
| using | DictType = std::unordered_map< std::string, std::string > |
| |
|
| bool | FetchGCP (ImageMetadata &imd) |
| |
| bool | FetchRPC (ImageMetadata &imd, const double lineOffset=0, const double sampleOffset=0) |
| |
| | GeomMetadataSupplier (const GeomMetadataSupplier &)=delete |
| |
| | GeomMetadataSupplier (const std::string &geomFile) |
| |
| | GeomMetadataSupplier (const std::string &geomFile, const std::string &imageFile) |
| |
| std::string | GetMetadataValue (std::string const &path, bool &hasValue, int band=1) const override |
| |
| int | GetNbBands () const override |
| |
| unsigned int | GetNumberOf (std::string const &) const override |
| |
| std::string | GetResourceFile (std::string const &s="") const override |
| |
| std::vector< std::string > | GetResourceFiles () const override |
| |
| GeomMetadataSupplier & | operator= (const GeomMetadataSupplier &)=delete |
| |
| | ~GeomMetadataSupplier ()=default |
| |
| template<> |
| bool | GetAs (bool const &defaultValue, std::string const &path, int band) const |
| |
| template<typename T > |
| T | GetAs (std::string const &path, int band=-1) const |
| |
| template<typename T > |
| T | GetAs (T const &defaultValue, std::string const &path, int band=-1) const |
| |
| template<typename T > |
| std::vector< T > | GetAsVector (std::string const &path, char sep=' ', int size=-1, int band=-1) const |
| |
| bool | HasValue (std::string const &path, int band=-1) const |
| |
| virtual | ~MetadataSupplierInterface ()=default |
| |
| std::unordered_map< std::string, std::string > | m_FileNames |
| |
| DictType | m_MetadataDic |
| |
| unsigned int | GetAttributeId (std::string const &, std::string const &) const override |
| |
| std::string | PrintSelf () const |
| |
| void | ReadGeomFile () |
| |
|
| const std::array< std::string, 3 > | FALSES = {"0", "false", "False"} |
| |
| const std::array< std::string, 3 > | TRUES = {"1", "true", "True"} |
| |
Class to access metadata information in a Geom file.
Definition at line 41 of file otbGeomMetadataSupplier.h.
◆ DictType
◆ GeomMetadataSupplier() [1/3]
| otb::GeomMetadataSupplier::GeomMetadataSupplier |
( |
const std::string & |
geomFile | ) |
|
◆ GeomMetadataSupplier() [2/3]
| otb::GeomMetadataSupplier::GeomMetadataSupplier |
( |
const std::string & |
geomFile, |
|
|
const std::string & |
imageFile |
|
) |
| |
◆ GeomMetadataSupplier() [3/3]
◆ ~GeomMetadataSupplier()
| otb::GeomMetadataSupplier::~GeomMetadataSupplier |
( |
| ) |
|
|
default |
◆ FetchGCP()
◆ FetchRPC()
| bool otb::GeomMetadataSupplier::FetchRPC |
( |
ImageMetadata & |
imd, |
|
|
const double |
lineOffset = 0, |
|
|
const double |
sampleOffset = 0 |
|
) |
| |
◆ GetAttributeId()
| unsigned int otb::GeomMetadataSupplier::GetAttributeId |
( |
std::string const & |
, |
|
|
std::string const & |
|
|
) |
| const |
|
inlineoverridevirtual |
◆ GetMetadataValue()
| std::string otb::GeomMetadataSupplier::GetMetadataValue |
( |
std::string const & |
path, |
|
|
bool & |
hasValue, |
|
|
int |
band = 1 |
|
) |
| const |
|
overridevirtual |
Get the metadata value corresponding to a given path.
- Parameters
-
| path | The path to look for |
| hasValue | True if path is found |
| band | not used |
- Returns
- The value corresponding to path. Empty string if not found.
Implements otb::MetadataSupplierInterface.
◆ GetNbBands()
| int otb::GeomMetadataSupplier::GetNbBands |
( |
| ) |
const |
|
overridevirtual |
◆ GetNumberOf()
| unsigned int otb::GeomMetadataSupplier::GetNumberOf |
( |
std::string const & |
| ) |
const |
|
overridevirtual |
◆ GetResourceFile()
| std::string otb::GeomMetadataSupplier::GetResourceFile |
( |
std::string const & |
s = "" | ) |
const |
|
overridevirtual |
◆ GetResourceFiles()
| std::vector<std::string> otb::GeomMetadataSupplier::GetResourceFiles |
( |
| ) |
const |
|
overridevirtual |
◆ operator=()
◆ PrintSelf()
| std::string otb::GeomMetadataSupplier::PrintSelf |
( |
| ) |
const |
Writes the content of the Geom file into a string.
- Returns
- A std::string
◆ ReadGeomFile()
| void otb::GeomMetadataSupplier::ReadGeomFile |
( |
| ) |
|
|
protected |
Parse a Geom file and fill the internal map.
◆ m_FileNames
| std::unordered_map<std::string, std::string> otb::GeomMetadataSupplier::m_FileNames |
|
private |
◆ m_MetadataDic
| DictType otb::GeomMetadataSupplier::m_MetadataDic |
|
private |
The documentation for this class was generated from the following file: