Represents a point in GARS coordinates, along with conversion to/from geographical coordinates.
More...
|
| 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 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'.
|
|
|
double | _dNorthing |
| Northing and Easting grid coordinates.
|
|
double | _dEasting |
|
Represents a point in GARS coordinates, along with conversion to/from geographical coordinates.
◆ 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
-
◆ 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
-
str | input GARS string |
gp | output 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
-
◆ SetGeoPos() [2/2]
void TPG.GeoUnits.GarsPos.SetGeoPos |
( |
GeoPos |
gp | ) |
|
|
inline |
Sets position from a GeoPos.
- Parameters
-
◆ SetGridPos()
void TPG.GeoUnits.GarsPos.SetGridPos |
( |
double |
dEasting, |
|
|
double |
dNorthing |
|
) |
| |
|
inline |
Sets grid position (minutes with offset)
- Parameters
-
◆ 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
-
- Returns
◆ ToStringRound()
string TPG.GeoUnits.GarsPos.ToStringRound |
( |
| ) |
|
|
inline |
Nearest position string.
- Returns
The documentation for this class was generated from the following file:
- Src/Libraries/Teleplan.C4IS.Geo/Objects/GarsPos.cs