31 #ifndef GDAL_MDREADER_H_INCLUDED 32 #define GDAL_MDREADER_H_INCLUDED 37 #define MD_DOMAIN_IMD "IMD" 38 #define MD_DOMAIN_RPC "RPC" 39 #define MD_DOMAIN_IMAGERY "IMAGERY" 40 #define MD_DOMAIN_DEFAULT "" 42 #define MD_NAME_ACQDATETIME "ACQUISITIONDATETIME" 43 #define MD_NAME_SATELLITE "SATELLITEID" 44 #define MD_NAME_CLOUDCOVER "CLOUDCOVER" 45 #define MD_NAME_MDTYPE "METADATATYPE" 47 #define MD_DATETIMEFORMAT "%Y-%m-%d %H:%M:%S" 48 #define MD_CLOUDCOVER_NA "999" 54 #define RPC_LINE_OFF "LINE_OFF" 55 #define RPC_SAMP_OFF "SAMP_OFF" 56 #define RPC_LAT_OFF "LAT_OFF" 57 #define RPC_LONG_OFF "LONG_OFF" 58 #define RPC_HEIGHT_OFF "HEIGHT_OFF" 59 #define RPC_LINE_SCALE "LINE_SCALE" 60 #define RPC_SAMP_SCALE "SAMP_SCALE" 61 #define RPC_LAT_SCALE "LAT_SCALE" 62 #define RPC_LONG_SCALE "LONG_SCALE" 63 #define RPC_HEIGHT_SCALE "HEIGHT_SCALE" 64 #define RPC_LINE_NUM_COEFF "LINE_NUM_COEFF" 65 #define RPC_LINE_DEN_COEFF "LINE_DEN_COEFF" 66 #define RPC_SAMP_NUM_COEFF "SAMP_NUM_COEFF" 67 #define RPC_SAMP_DEN_COEFF "SAMP_DEN_COEFF" 70 #define RPC_MIN_LONG "MIN_LONG" 71 #define RPC_MIN_LAT "MIN_LAT" 72 #define RPC_MAX_LONG "MAX_LONG" 73 #define RPC_MAX_LAT "MAX_LAT" 80 MDR_None = 0x00000000,
84 MDR_PLEIADES = 0x00000008,
85 MDR_SPOT = 0x00000010,
86 MDR_RDK1 = 0x00000020,
89 MDR_KOMPSAT = 0x00000100,
90 MDR_EROS = 0x00000200,
91 MDR_ALOS = 0x00000400,
92 MDR_ANY = MDR_DG | MDR_GE | MDR_OV | MDR_PLEIADES | MDR_SPOT | MDR_RDK1 |
93 MDR_LS | MDR_RE | MDR_KOMPSAT | MDR_EROS | MDR_ALOS
118 virtual bool FillMetadata(GDALMultiDomainMetadata* poMDMD);
153 const char* pszName =
"");
164 const char *pszValue);
167 char **m_papszIMDMD =
nullptr;
168 char **m_papszRPCMD =
nullptr;
169 char **m_papszIMAGERYMD =
nullptr;
170 char **m_papszDEFAULTMD =
nullptr;
171 bool m_bIsMetadataLoad =
false;
199 char **papszSiblingFiles,
210 char** GDALLoadRPBFile(
const CPLString& osFilePath );
211 char** GDALLoadRPCFile(
const CPLString& osFilePath );
212 char** GDALLoadIMDFile(
const CPLString& osFilePath );
213 bool GDALCheckFileHeader(
const CPLString& soFilePath,
214 const char * pszTestString,
215 int nBufferSize = 256);
217 CPLErr GDALWriteRPBFile(
const char *pszFilename,
char **papszMD );
218 CPLErr GDALWriteRPCTXTFile(
const char *pszFilename,
char **papszMD );
219 CPLErr GDALWriteIMDFile(
const char *pszFilename,
char **papszMD );
221 #endif //GDAL_MDREADER_H_INCLUDED Document node structure.
Definition: cpl_minixml.h:66
Core portability definitions for CPL.
unsigned int GUInt32
Unsigned int32 type.
Definition: cpl_port.h:207
The base class for all metadata readers.
Definition: gdal_mdreader.h:99
Convenient string class based on std::string.
Definition: cpl_string.h:329
virtual char ** AddXMLNameValueToList(char **papszList, const char *pszName, const char *pszValue)
AddXMLNameValueToList Execute from ReadXMLToList to add name and value to list.
Definition: gdal_mdreader.cpp:294
virtual void LoadMetadata()
Load metadata to the correspondent IMD, RPB, IMAGERY and DEFAULT domains.
Definition: gdal_mdreader.cpp:225
GDALMDReaderBase(const char *pszPath, char **papszSiblingFiles)
GDALMDReaderBase()
Definition: gdal_mdreader.cpp:190
virtual ~GDALMDReaderBase()
~GDALMDReaderBase()
Definition: gdal_mdreader.cpp:197
virtual char ** ReadXMLToList(CPLXMLNode *psNode, char **papszList, const char *pszName="")
ReadXMLToList Transform xml to list of NULL terminated name=value strings.
Definition: gdal_mdreader.cpp:304
virtual time_t GetAcquisitionTimeFromString(const char *pszDateTime)
Convert string like 2012-02-25T00:25:59.9440000Z to time.
Definition: gdal_mdreader.cpp:235
virtual bool HasRequiredFiles() const =0
Determine whether the input parameter correspond to the particular provider of remote sensing data co...
virtual char ** GetMetadataFiles() const =0
Get metadata file names.
The metadata reader main class.
Definition: gdal_mdreader.h:180
virtual char ** GetMetadataDomain(const char *pszDomain)
Get specified metadata domain.
Definition: gdal_mdreader.cpp:208
virtual bool FillMetadata(GDALMultiDomainMetadata *poMDMD)
Fill provided metadata store class.
Definition: gdal_mdreader.cpp:276
CPLErr
Error category.
Definition: cpl_error.h:52
#define CPL_DISALLOW_COPY_ASSIGN(ClassName)
Helper to remove the copy and assignment constructors so that the compiler will not generate the defa...
Definition: cpl_port.h:989