Go to the documentation of this file.
14 if (!
cells.isEmpty()) {
91 return coord_sys.find(
"UTM:") != std::string::npos;
99 const std::string& coord_sys,
const std::string& if_not_found) {
101 if (std::regex_search(coord_sys, match,
102 std::regex(
"UTM[^0-9A-Za-z]*(\\d++\\w)[^\\w]*"))) {
109 const std::string& coord_sys,
const std::string& if_not_found) {
111 if (std::regex_search(coord_sys, match,
112 std::regex(
"datum[^0-9A-Za-z]*([0-9A-Za-z]+)"))) {
127 return coord_sys.find(
"EPSG:") != std::string::npos;
136 std::stoi(coord_sys.substr(5)) : -1;
154 const std::string& utm,
const std::string& datum) {
174 if (hemisphere ==
"n" || hemisphere ==
"N") {
176 }
else if (hemisphere ==
"s" || hemisphere ==
"S") {
double area() const
Compute area of the geometry.
Types used by fields2cover library.
Field & operator=(Field &&)
std::string prev_coord_sys_
const LinearRing getCellBorder(size_t i) const
int getEPSGCoordSystem() const
void setEPSGCoordSystem(int epsg)
const Point startPoint() const
void setRefPoint(const Point &_ref_point)
bool isCoordSystemEPSG() const
void setCRS(const std::string &crs)
void setUTMCoordSystem(const std::string &utm)
std::string getUTMCoordSystem() const
std::string getUTMHemisphere() const
bool isCoordSystemUTM() const
std::string getUTMDatum() const
Cells getCellsAbsPosition() const
std::string getUTMZone() const
void setField(const Cells &_field)
void setId(const std::string &_id)
void setPrevCRS(const std::string &prev_crs)
std::string getId() const
std::string to_string(double d, const int precision=6)
std::string getPrevCRS() const
std::string getCRS() const
fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31