Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
f2c::types::Field Struct Reference

#include <Field.h>

Public Member Functions

double area () const
 
Field clone () const
 
 Field ()
 
 Field (const Cells &cells, const std::string &id="")
 
 Field (const Field &)
 
 Field (Field &&)
 
Cells getCellsAbsPosition () const
 
std::string getCRS () const
 
int getEPSGCoordSystem () const
 
CellsgetField ()
 
const CellsgetField () const
 
std::string getId () const
 
std::string getPrevCRS () const
 
PointgetRefPoint ()
 
const PointgetRefPoint () const
 
std::string getUTMCoordSystem () const
 
std::string getUTMDatum () const
 
std::string getUTMHemisphere () const
 
std::string getUTMZone () const
 
bool isCoordSystemEPSG () const
 
bool isCoordSystemUTM () const
 
bool isEmpty () const
 
Fieldoperator= (const Field &)
 
Fieldoperator= (Field &&)
 
void setCRS (const std::string &crs)
 
void setEPSGCoordSystem (int epsg)
 
void setField (const Cells &_field)
 
void setId (const std::string &_id)
 
void setPrevCRS (const std::string &prev_crs)
 
void setRefPoint (const Point &_ref_point)
 
void setUTMCoordSystem (const std::string &utm)
 
void setUTMCoordSystem (const std::string &utm, const std::string &datum)
 
 ~Field ()
 

Static Public Member Functions

static int getEPSGCoordSystem (const std::string &coord_sys)
 
static std::string getUTMCoordSystem (const std::string &coord_sys, const std::string &if_not_found="")
 
static std::string getUTMDatum (const std::string &coord_sys, const std::string &if_not_found="etrs89")
 
static std::string getUTMHemisphere (const std::string &coord_sys)
 
static std::string getUTMZone (const std::string &coord_sys)
 
static bool isCoordSystemEPSG (const std::string &coord_sys)
 
static bool isCoordSystemUTM (const std::string &coord_sys)
 

Private Attributes

std::string coord_sys_ {""}
 
Cells field_
 
std::string id_ {""}
 
std::string prev_coord_sys_ {""}
 
Point ref_point_
 

Detailed Description

Definition at line 18 of file Field.h.

Constructor & Destructor Documentation

◆ Field() [1/4]

f2c::types::Field::Field ( )
default

◆ Field() [2/4]

f2c::types::Field::Field ( const Cells cells,
const std::string &  id = "" 
)
explicit

Definition at line 13 of file Field.cpp.

◆ ~Field()

f2c::types::Field::~Field ( )
default

◆ Field() [3/4]

f2c::types::Field::Field ( const Field )
default

◆ Field() [4/4]

f2c::types::Field::Field ( Field &&  )
default

Member Function Documentation

◆ area()

double f2c::types::Field::area ( ) const

Definition at line 82 of file Field.cpp.

◆ clone()

Field f2c::types::Field::clone ( ) const

Definition at line 76 of file Field.cpp.

◆ getCellsAbsPosition()

Cells f2c::types::Field::getCellsAbsPosition ( ) const

Definition at line 160 of file Field.cpp.

◆ getCRS()

std::string f2c::types::Field::getCRS ( ) const

Definition at line 36 of file Field.cpp.

◆ getEPSGCoordSystem() [1/2]

int f2c::types::Field::getEPSGCoordSystem ( ) const

Definition at line 139 of file Field.cpp.

◆ getEPSGCoordSystem() [2/2]

int f2c::types::Field::getEPSGCoordSystem ( const std::string &  coord_sys)
static

Definition at line 134 of file Field.cpp.

◆ getField() [1/2]

const Cells & f2c::types::Field::getField ( )

Definition at line 64 of file Field.cpp.

◆ getField() [2/2]

const Cells& f2c::types::Field::getField ( ) const

◆ getId()

std::string f2c::types::Field::getId ( ) const

Definition at line 28 of file Field.cpp.

◆ getPrevCRS()

std::string f2c::types::Field::getPrevCRS ( ) const

Definition at line 44 of file Field.cpp.

◆ getRefPoint() [1/2]

const Point & f2c::types::Field::getRefPoint ( )

Definition at line 52 of file Field.cpp.

◆ getRefPoint() [2/2]

const Point& f2c::types::Field::getRefPoint ( ) const

◆ getUTMCoordSystem() [1/2]

std::string f2c::types::Field::getUTMCoordSystem ( ) const

Definition at line 118 of file Field.cpp.

◆ getUTMCoordSystem() [2/2]

std::string f2c::types::Field::getUTMCoordSystem ( const std::string &  coord_sys,
const std::string &  if_not_found = "" 
)
static

Definition at line 98 of file Field.cpp.

◆ getUTMDatum() [1/2]

std::string f2c::types::Field::getUTMDatum ( ) const

Definition at line 122 of file Field.cpp.

◆ getUTMDatum() [2/2]

std::string f2c::types::Field::getUTMDatum ( const std::string &  coord_sys,
const std::string &  if_not_found = "etrs89" 
)
static

Definition at line 108 of file Field.cpp.

◆ getUTMHemisphere() [1/2]

std::string f2c::types::Field::getUTMHemisphere ( ) const

Definition at line 183 of file Field.cpp.

◆ getUTMHemisphere() [2/2]

std::string f2c::types::Field::getUTMHemisphere ( const std::string &  coord_sys)
static

Definition at line 172 of file Field.cpp.

◆ getUTMZone() [1/2]

std::string f2c::types::Field::getUTMZone ( ) const

Definition at line 168 of file Field.cpp.

◆ getUTMZone() [2/2]

std::string f2c::types::Field::getUTMZone ( const std::string &  coord_sys)
static

Definition at line 164 of file Field.cpp.

◆ isCoordSystemEPSG() [1/2]

bool f2c::types::Field::isCoordSystemEPSG ( ) const

Definition at line 130 of file Field.cpp.

◆ isCoordSystemEPSG() [2/2]

bool f2c::types::Field::isCoordSystemEPSG ( const std::string &  coord_sys)
static

Definition at line 126 of file Field.cpp.

◆ isCoordSystemUTM() [1/2]

bool f2c::types::Field::isCoordSystemUTM ( ) const

Definition at line 94 of file Field.cpp.

◆ isCoordSystemUTM() [2/2]

bool f2c::types::Field::isCoordSystemUTM ( const std::string &  coord_sys)
static

Definition at line 90 of file Field.cpp.

◆ isEmpty()

bool f2c::types::Field::isEmpty ( ) const

Definition at line 86 of file Field.cpp.

◆ operator=() [1/2]

Field & f2c::types::Field::operator= ( const Field )
default

◆ operator=() [2/2]

Field & f2c::types::Field::operator= ( Field &&  )
default

◆ setCRS()

void f2c::types::Field::setCRS ( const std::string &  crs)

Definition at line 40 of file Field.cpp.

◆ setEPSGCoordSystem()

void f2c::types::Field::setEPSGCoordSystem ( int  epsg)

Definition at line 143 of file Field.cpp.

◆ setField()

void f2c::types::Field::setField ( const Cells _field)

Definition at line 72 of file Field.cpp.

◆ setId()

void f2c::types::Field::setId ( const std::string &  _id)

Definition at line 32 of file Field.cpp.

◆ setPrevCRS()

void f2c::types::Field::setPrevCRS ( const std::string &  prev_crs)

Definition at line 48 of file Field.cpp.

◆ setRefPoint()

void f2c::types::Field::setRefPoint ( const Point _ref_point)

Definition at line 60 of file Field.cpp.

◆ setUTMCoordSystem() [1/2]

void f2c::types::Field::setUTMCoordSystem ( const std::string &  utm)

Definition at line 147 of file Field.cpp.

◆ setUTMCoordSystem() [2/2]

void f2c::types::Field::setUTMCoordSystem ( const std::string &  utm,
const std::string &  datum 
)

Definition at line 153 of file Field.cpp.

Member Data Documentation

◆ coord_sys_

std::string f2c::types::Field::coord_sys_ {""}
private

Definition at line 69 of file Field.h.

◆ field_

Cells f2c::types::Field::field_
private

Definition at line 72 of file Field.h.

◆ id_

std::string f2c::types::Field::id_ {""}
private

Definition at line 68 of file Field.h.

◆ prev_coord_sys_

std::string f2c::types::Field::prev_coord_sys_ {""}
private

Definition at line 70 of file Field.h.

◆ ref_point_

Point f2c::types::Field::ref_point_
private

Definition at line 71 of file Field.h.


The documentation for this struct was generated from the following files:


fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31