Stores information on the METADATA section of a iCSV file.
#include <iCSVHelper.h>
Public Member Functions | |
void | setEPSG (const int &in_epsg) |
Set the EPSG code and update the SRID. More... | |
std::string | getOptionalMetaData (const std::string &key) const |
Get the value of an optional metadata field. More... | |
std::map< std::string, std::string > | toMetaMap () const |
Convert the metadata section to a map. More... | |
std::map< std::string, std::string > | toOutputMap () const |
Convert the metadata section to an output map. More... | |
Public Attributes | |
char | field_delimiter = '0' |
std::string | geometry = "" |
std::string | srid = "" |
int | epsg = -1 |
std::string | station_id = "" |
std::string | timestamp_meaning = "" |
double | nodata = default_nodata |
double | timezone = default_nodata |
std::string | doi = "" |
std::map< std::string, std::string > | optional_metadata = {} |
const std::vector< char > | valid_delimiters = {',', '/', '\\', '|', ':', ';'} |
|
inline |
Get the value of an optional metadata field.
key | The key of the optional metadata field. |
|
inline |
Set the EPSG code and update the SRID.
in_epsg | The EPSG code. |
|
inline |
Convert the metadata section to a map.
|
inline |
Convert the metadata section to an output map.
std::string mio::iCSV::MetaDataSection::doi = "" |
The Digital Object Identifier.
int mio::iCSV::MetaDataSection::epsg = -1 |
The EPSG code.
char mio::iCSV::MetaDataSection::field_delimiter = '0' |
The field delimiter character.
std::string mio::iCSV::MetaDataSection::geometry = "" |
The geometry information.
double mio::iCSV::MetaDataSection::nodata = default_nodata |
The nodata value.
std::map<std::string, std::string> mio::iCSV::MetaDataSection::optional_metadata = {} |
The optional metadata.
std::string mio::iCSV::MetaDataSection::srid = "" |
The spatial reference system identifier.
std::string mio::iCSV::MetaDataSection::station_id = "" |
The station identifier.
std::string mio::iCSV::MetaDataSection::timestamp_meaning = "" |
The meaning of the timestamp.
double mio::iCSV::MetaDataSection::timezone = default_nodata |
The timezone value.
const std::vector<char> mio::iCSV::MetaDataSection::valid_delimiters = {',', '/', '\\', '|', ':', ';'} |
The valid delimiters.