The base class for all metadata readers.
More...
#include <gdal_mdreader.h>
|
virtual void | LoadMetadata () |
| Load metadata to the correspondent IMD, RPB, IMAGERY and DEFAULT domains. More...
|
|
virtual time_t | GetAcquisitionTimeFromString (const char *pszDateTime) |
| Convert string like 2012-02-25T00:25:59.9440000Z to time. More...
|
|
virtual char ** | ReadXMLToList (CPLXMLNode *psNode, char **papszList, const char *pszName="") |
| ReadXMLToList Transform xml to list of NULL terminated name=value strings. More...
|
|
virtual char ** | AddXMLNameValueToList (char **papszList, const char *pszName, const char *pszValue) |
| AddXMLNameValueToList Execute from ReadXMLToList to add name and value to list. More...
|
|
The base class for all metadata readers.
◆ AddXMLNameValueToList()
char ** GDALMDReaderBase::AddXMLNameValueToList |
( |
char ** |
papszList, |
|
|
const char * |
pszName, |
|
|
const char * |
pszValue |
|
) |
| |
|
protectedvirtual |
AddXMLNameValueToList Execute from ReadXMLToList to add name and value to list.
AddXMLNameValueToList()
One can override this function for special processing input values before add to list.
- Parameters
-
papszList | A list to fill with name=value strings |
pszName | A name to add |
pszValue | A value to add |
- Returns
- An input list filled with values
◆ FillMetadata()
bool GDALMDReaderBase::FillMetadata |
( |
GDALMultiDomainMetadata * |
poMDMD | ) |
|
|
virtual |
Fill provided metadata store class.
- Parameters
-
poMDMD | Metadata store class |
- Returns
- true on success or false
◆ GetAcquisitionTimeFromString()
time_t GDALMDReaderBase::GetAcquisitionTimeFromString |
( |
const char * |
pszDateTime | ) |
|
|
protectedvirtual |
Convert string like 2012-02-25T00:25:59.9440000Z to time.
GetAcqisitionTimeFromString()
- Parameters
-
pszDateTime | String to convert |
- Returns
- value in time_t
◆ GetMetadataDomain()
char ** GDALMDReaderBase::GetMetadataDomain |
( |
const char * |
pszDomain | ) |
|
|
virtual |
Get specified metadata domain.
GetMetadataItem()
- Parameters
-
pszDomain | The metadata domain to return |
- Returns
- List of metadata items
◆ GetMetadataFiles()
virtual char** GDALMDReaderBase::GetMetadataFiles |
( |
| ) |
const |
|
pure virtual |
Get metadata file names.
The caller become owner of returned list and have to free it via CSLDestroy.
- Returns
- A file name list
◆ HasRequiredFiles()
virtual bool GDALMDReaderBase::HasRequiredFiles |
( |
| ) |
const |
|
pure virtual |
Determine whether the input parameter correspond to the particular provider of remote sensing data completely.
- Returns
- True if all needed sources files found
◆ LoadMetadata()
void GDALMDReaderBase::LoadMetadata |
( |
| ) |
|
|
protectedvirtual |
Load metadata to the correspondent IMD, RPB, IMAGERY and DEFAULT domains.
LoadMetadata()
◆ ReadXMLToList()
char ** GDALMDReaderBase::ReadXMLToList |
( |
CPLXMLNode * |
psNode, |
|
|
char ** |
papszList, |
|
|
const char * |
pszName = "" |
|
) |
| |
|
protectedvirtual |
ReadXMLToList Transform xml to list of NULL terminated name=value strings.
CPLReadXMLToList()
- Parameters
-
psNode | A xml node to process |
papszList | A list to fill with name=value strings |
pszName | A name of parent node. For root xml node should be empty. If name is not empty, the sibling nodes will not proceed |
- Returns
- An input list filled with values
The documentation for this class was generated from the following files: