Maria GDK 4.6.0.140
Documentation of managed code in release branch
Loading...
Searching...
No Matches
TPG.GeoUnits.GarsPos Class Reference

Represents a point in GARS coordinates, along with conversion to/from geographical coordinates. More...

Public Member Functions

 GarsPos ()
 Constructor.
 
override string ToString ()
 Produces GARS position string (cell string)
 
string ToStringRound ()
 Nearest position string.
 
void SetGeoPos (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)
 
GeoPos GetGeoPos ()
 Gets position as GeoPos.
 
void GetGridPos (out double dEasting, out double dNorthing)
 Gets the grid position.
 

Static Public Member Functions

static string ToString (GeoPos gp)
 Produces a GARS position string from a GeoPos.
 
static bool Parse (string str, out 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
 

Detailed Description

Represents a point in GARS coordinates, along with conversion to/from geographical coordinates.

Member Function Documentation

◆ GetGeoPos()

GeoPos TPG.GeoUnits.GarsPos.GetGeoPos ( )
inline

Gets position as GeoPos.

Returns

◆ GetGridPos()

void TPG.GeoUnits.GarsPos.GetGridPos ( out double  dEasting,
out double  dNorthing 
)
inline

Gets the grid position.

Parameters
dEasting
dNorthing

◆ Parse()

static bool TPG.GeoUnits.GarsPos.Parse ( string  str,
out GeoPos  gp 
)
inlinestatic

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 TPG.GeoUnits.GarsPos.SetGeoPos ( double  lat,
double  lon 
)
inline

Sets position from lat, lon.

Parameters
lat
lon

◆ SetGeoPos() [2/2]

void TPG.GeoUnits.GarsPos.SetGeoPos ( GeoPos  gp)
inline

Sets position from a GeoPos.

Parameters
gp

◆ SetGridPos()

void TPG.GeoUnits.GarsPos.SetGridPos ( double  dEasting,
double  dNorthing 
)
inline

Sets grid position (minutes with offset)

Parameters
dEasting
dNorthing

◆ ToString() [1/2]

override string TPG.GeoUnits.GarsPos.ToString ( )
inline

Produces GARS position string (cell string)

Returns

◆ ToString() [2/2]

static string TPG.GeoUnits.GarsPos.ToString ( GeoPos  gp)
inlinestatic

Produces a GARS position string from a GeoPos.

Parameters
gp
Returns

◆ ToStringRound()

string TPG.GeoUnits.GarsPos.ToStringRound ( )
inline

Nearest position string.

Returns

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