Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria::MGarsPos Class Reference

Public Member Functions

 MGarsPos ()
 Constructor.
 
std::string ToString ()
 Produces GARS position string (cell string)
 
std::string ToStringRound ()
 Nearest position string.
 
void SetGeoPos (const BasicGeoTypes::GeoPos &gp)
 Sets position from a GeoPos.
 
void SetGeoPos (double lat, double lon)
 Sets position from lat, lon.
 
void SetGridPos (double dEasting, double dNorthing)
 Sets grid position (minutes with offset)
 
BasicGeoTypes::GeoPos GetGeoPos ()
 Gets position as GeoPos.
 
void GetGridPos (double &dEasting, double &dNorthing)
 Gets the grid position.
 

Static Public Member Functions

template<typename T >
static std::string to_string_with_padding (const T &value, std::size_t total_length)
 
static std::string ToString (const BasicGeoTypes::GeoPos &gp)
 Produces a GARS position string from a GeoPos.
 
static bool Parse (const std::string &str, BasicGeoTypes::GeoPos &gp)
 Parse the GARS position string to form a GeoPos. This position string has no better precision than 2.5'.
 

Public Attributes

double _dNorthing
 Northing and Easting grid coordinates.
 
double _dEasting
 

Member Function Documentation

◆ GetGeoPos()

BasicGeoTypes::GeoPos Maria::MGarsPos::GetGeoPos ( )
inline

Gets position as GeoPos.

Returns

◆ GetGridPos()

void Maria::MGarsPos::GetGridPos ( double &  dEasting,
double &  dNorthing 
)
inline

Gets the grid position.

Parameters
dEasting
dNorthing

◆ Parse()

bool MGarsPos::Parse ( const std::string &  str,
BasicGeoTypes::GeoPos gp 
)
static

Parse the GARS position string to form a GeoPos. This position string has no better precision than 2.5'.

Parameters
strinput GARS string
gpoutput GeoPos, valid if successful
Returns
true if input string is valid

◆ SetGeoPos() [1/2]

void Maria::MGarsPos::SetGeoPos ( const BasicGeoTypes::GeoPos gp)
inline

Sets position from a GeoPos.

Parameters
gp

◆ SetGeoPos() [2/2]

void Maria::MGarsPos::SetGeoPos ( double  lat,
double  lon 
)
inline

Sets position from lat, lon.

Parameters
lat
lon

◆ SetGridPos()

void Maria::MGarsPos::SetGridPos ( double  dEasting,
double  dNorthing 
)
inline

Sets grid position (minutes with offset)

Parameters
dEasting
dNorthing

◆ ToString() [1/2]

std::string MGarsPos::ToString ( )

Produces GARS position string (cell string)

Returns

◆ ToString() [2/2]

static std::string Maria::MGarsPos::ToString ( const BasicGeoTypes::GeoPos gp)
inlinestatic

Produces a GARS position string from a GeoPos.

Parameters
gp
Returns

◆ ToStringRound()

std::string MGarsPos::ToStringRound ( )

Nearest position string.

Returns

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