C# Class MightyLittleGeodesy.Positions.WGS84Position

Inheritance: MightyLittleGeodesy.Classes.Position
Afficher le fichier Open project: bjornsallarp/MightyLittleGeodesy Class Usage Examples

Méthodes publiques

Méthode Description
LatitudeToString ( WGS84Format format ) : string

Returns a string representation in the given format

LongitudeToString ( WGS84Format format ) : string

Returns a string representation in the given format

SetLatitudeFromString ( string value, WGS84Format format ) : void

Set the latitude value from a string. The string is parsed based on given format

SetLongitudeFromString ( string value, WGS84Format format ) : void

Set the longitude value from a string. The string is parsed based on given format

ToString ( ) : string
WGS84Position ( ) : System

Create a new WGS84 position with empty coordinates

WGS84Position ( double latitude, double longitude ) : System

Create a new WGS84 position with latitude and longitude

WGS84Position ( string positionString, WGS84Format format ) : System

Create a new WGS84 position from a string containing both latitude and longitude. The string is parsed based on the supplied format.

Private Methods

Méthode Description
ConvToDmString ( double value, Char positiveValue, Char negativeValue ) : string
ConvToDmsString ( double value, Char positiveValue, Char negativeValue ) : string
ParseValueFromDmString ( string value, char positiveChar ) : double
ParseValueFromDmsString ( string value, char positiveChar ) : double

Method Details

LatitudeToString() public méthode

Returns a string representation in the given format
public LatitudeToString ( WGS84Format format ) : string
format WGS84Format
Résultat string

LongitudeToString() public méthode

Returns a string representation in the given format
public LongitudeToString ( WGS84Format format ) : string
format WGS84Format
Résultat string

SetLatitudeFromString() public méthode

Set the latitude value from a string. The string is parsed based on given format
public SetLatitudeFromString ( string value, WGS84Format format ) : void
value string String represenation of a latitude value
format WGS84Format Coordinate format in the string
Résultat void

SetLongitudeFromString() public méthode

Set the longitude value from a string. The string is parsed based on given format
public SetLongitudeFromString ( string value, WGS84Format format ) : void
value string String represenation of a longitude value
format WGS84Format Coordinate format in the string
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

WGS84Position() public méthode

Create a new WGS84 position with empty coordinates
public WGS84Position ( ) : System
Résultat System

WGS84Position() public méthode

Create a new WGS84 position with latitude and longitude
public WGS84Position ( double latitude, double longitude ) : System
latitude double
longitude double
Résultat System

WGS84Position() public méthode

Create a new WGS84 position from a string containing both latitude and longitude. The string is parsed based on the supplied format.
public WGS84Position ( string positionString, WGS84Format format ) : System
positionString string
format WGS84Format
Résultat System