Classes | |
struct | fieldsSection |
Stores Information on the FIELDS section of a iCSV file. More... | |
struct | geoLocation |
Represents a geographic location extracted from iCSV files. (POINT(X Y)...) More... | |
class | iCSVFile |
This class is responsible for handling and storing iCSV files. More... | |
struct | MetaDataSection |
Stores information on the METADATA section of a iCSV file. More... | |
Functions | |
static void | custom_assert (const std::string &value, const std::string &asssert_val) |
static bool | isValidFirstLine (const std::string &firstline) |
static std::vector< double > | extractMatches (const std::string &match) |
Extracts values out of geometry strings. More... | |
static geoLocation | processGeometryRegexes (const std::string &geometry, const std::regex ®, const bool &has_Z) |
process geometry strings to return a geoLocation object. More... | |
static std::string | extractEpsgCode (const std::string &epsgStr) |
Extracts the EPSG code from a string in the format "EPSG:XXXX". More... | |
static bool | isValidEpsgCode (const std::string &epsgStr) |
std::vector< double > | convertVector (const std::vector< std::string > &vec) |
std::vector< Coords > | convertVector (const std::vector< geoLocation > &vec, const int &epsg) |
geoLocation | toiCSVLocation (Coords loc, const int &epsg) |
geoLocation | extractCoordinates (const std::string &geometry) |
extracts a geoLocation object out of a WKT geometry string. More... | |
bool | operator== (const geoLocation &lhs, const geoLocation &rhs) |
bool | operator!= (const geoLocation &lhs, const geoLocation &rhs) |
bool | operator== (const MetaDataSection &lhs, const MetaDataSection &rhs) |
bool | roughlyEqual (const MetaDataSection &lhs, const MetaDataSection &rhs) |
Checks if two MetaDataSection objects are roughly equal. More... | |
MetaDataSection & | operator+= (MetaDataSection &lhs, const MetaDataSection &rhs) |
bool | operator== (const fieldsSection &lhs, const fieldsSection &rhs) |
bool | roughlyEqual (const fieldsSection &lhs, const fieldsSection &rhs) |
Checks if two fieldsSection objects are roughly equal. More... | |
fieldsSection & | operator+= (fieldsSection &lhs, const fieldsSection &rhs) |
std::vector< Coords > mio::iCSV::convertVector | ( | const std::vector< geoLocation > & | vec, |
const int & | epsg | ||
) |
std::vector< double > mio::iCSV::convertVector | ( | const std::vector< std::string > & | vec | ) |
Converts a vector of strings to a vector of doubles.
vec | The vector of strings to be converted. |
|
static |
geoLocation mio::iCSV::extractCoordinates | ( | const std::string & | geometry | ) |
extracts a geoLocation object out of a WKT geometry string.
[in] | geometry | WKT geometry string |
|
static |
Extracts the EPSG code from a string in the format "EPSG:XXXX".
epsgStr | The string containing the EPSG code. |
|
static |
Extracts values out of geometry strings.
|
static |
|
static |
bool mio::iCSV::operator!= | ( | const geoLocation & | lhs, |
const geoLocation & | rhs | ||
) |
fieldsSection & mio::iCSV::operator+= | ( | fieldsSection & | lhs, |
const fieldsSection & | rhs | ||
) |
MetaDataSection & mio::iCSV::operator+= | ( | MetaDataSection & | lhs, |
const MetaDataSection & | rhs | ||
) |
bool mio::iCSV::operator== | ( | const fieldsSection & | lhs, |
const fieldsSection & | rhs | ||
) |
bool mio::iCSV::operator== | ( | const geoLocation & | lhs, |
const geoLocation & | rhs | ||
) |
bool mio::iCSV::operator== | ( | const MetaDataSection & | lhs, |
const MetaDataSection & | rhs | ||
) |
|
static |
process geometry strings to return a geoLocation object.
For Now only returs the last point in the geometry string.
bool mio::iCSV::roughlyEqual | ( | const fieldsSection & | lhs, |
const fieldsSection & | rhs | ||
) |
Checks if two fieldsSection objects are roughly equal.
lhs | The first MetaDataSection object. |
rhs | The second MetaDataSection object. |
bool mio::iCSV::roughlyEqual | ( | const MetaDataSection & | lhs, |
const MetaDataSection & | rhs | ||
) |
Checks if two MetaDataSection objects are roughly equal.
lhs | The first MetaDataSection object. |
rhs | The second MetaDataSection object. |
geoLocation mio::iCSV::toiCSVLocation | ( | Coords | loc, |
const int & | epsg | ||
) |
Converts the given Coords object to a geoLocation object.