C# 클래스 MightyLittleGeodesy.Positions.WGS84Position

상속: MightyLittleGeodesy.Classes.Position
파일 보기 프로젝트 열기: bjornsallarp/MightyLittleGeodesy 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

LatitudeToString() 공개 메소드

Returns a string representation in the given format
public LatitudeToString ( WGS84Format format ) : string
format WGS84Format
리턴 string

LongitudeToString() 공개 메소드

Returns a string representation in the given format
public LongitudeToString ( WGS84Format format ) : string
format WGS84Format
리턴 string

SetLatitudeFromString() 공개 메소드

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
리턴 void

SetLongitudeFromString() 공개 메소드

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
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

WGS84Position() 공개 메소드

Create a new WGS84 position with empty coordinates
public WGS84Position ( ) : System
리턴 System

WGS84Position() 공개 메소드

Create a new WGS84 position with latitude and longitude
public WGS84Position ( double latitude, double longitude ) : System
latitude double
longitude double
리턴 System

WGS84Position() 공개 메소드

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
리턴 System