C# Class DataServer.Position

Inheritance: PropertyChangedBase, IXmlSerializable, ITrackLog, IConvertibleGeoJson
显示文件 Open project: TNOCS/csTouch Class Usage Examples

Private Properties

Property Type Description
DegreeToRadian double
RadianToDegree double
ToBearing double

Public Methods

Method Description
AngleAndDistance ( double angle, double distanceKilometres ) : Position

Computes a new point based on angle and distance

Bearing ( Position toPosition ) : double

Computes the bearing to an other point

Clone ( ) : Position
Distance ( Position toPosition ) : double

Computes the distance between two positions in WGS84

FromCsv ( string ln, char separator = ',', bool newObject = true ) : IConvertibleCsv
FromGeoJson ( Newtonsoft.Json.Linq.JObject geoJsonObject, bool newObject = true ) : IConvertibleGeoJson
FromGeoJson ( string geoJson, bool newObject ) : IConvertibleGeoJson
GetSchema ( ) : XmlSchema
Position ( ) : System
Position ( double longitude, double latitude ) : System
Position ( double longitude, double latitude, double altitude ) : System
Position ( double longitude, double latitude, double altitude, double speed, double course ) : System
Position ( string csvString, char separator = ',' ) : System
ReadXml ( XmlReader reader ) : void
ToCsv ( char separator = ',' ) : string
ToGeoJson ( ) : string
ToMapPoint ( ) : MapPoint
ToMgrs ( ) : string
ToPoint ( ) : System.Windows.Point

Try not to use this function! Use MapPoint

ToString ( ) : string
ToWebMercator ( ) : MapPoint
WriteXml ( XmlWriter writer ) : void

Private Methods

Method Description
DegreeToRadian ( double angle ) : double
RadianToDegree ( double angle ) : double
ToBearing ( double radians ) : double

Method Details

AngleAndDistance() public method

Computes a new point based on angle and distance
public AngleAndDistance ( double angle, double distanceKilometres ) : Position
angle double Angle in degrees
distanceKilometres double
return Position

Bearing() public method

Computes the bearing to an other point
public Bearing ( Position toPosition ) : double
toPosition Position Other point
return double

Clone() public method

public Clone ( ) : Position
return Position

Distance() public method

Computes the distance between two positions in WGS84
public Distance ( Position toPosition ) : double
toPosition Position
return double

FromCsv() public method

public FromCsv ( string ln, char separator = ',', bool newObject = true ) : IConvertibleCsv
ln string
separator char
newObject bool
return IConvertibleCsv

FromGeoJson() public method

public FromGeoJson ( Newtonsoft.Json.Linq.JObject geoJsonObject, bool newObject = true ) : IConvertibleGeoJson
geoJsonObject Newtonsoft.Json.Linq.JObject
newObject bool
return IConvertibleGeoJson

FromGeoJson() public method

public FromGeoJson ( string geoJson, bool newObject ) : IConvertibleGeoJson
geoJson string
newObject bool
return IConvertibleGeoJson

GetSchema() public method

public GetSchema ( ) : XmlSchema
return System.Xml.Schema.XmlSchema

Position() public method

public Position ( ) : System
return System

Position() public method

public Position ( double longitude, double latitude ) : System
longitude double
latitude double
return System

Position() public method

public Position ( double longitude, double latitude, double altitude ) : System
longitude double
latitude double
altitude double
return System

Position() public method

public Position ( double longitude, double latitude, double altitude, double speed, double course ) : System
longitude double
latitude double
altitude double
speed double
course double
return System

Position() public method

public Position ( string csvString, char separator = ',' ) : System
csvString string
separator char
return System

ReadXml() public method

public ReadXml ( XmlReader reader ) : void
reader System.Xml.XmlReader
return void

ToCsv() public method

public ToCsv ( char separator = ',' ) : string
separator char
return string

ToGeoJson() public method

public ToGeoJson ( ) : string
return string

ToMapPoint() public method

public ToMapPoint ( ) : MapPoint
return MapPoint

ToMgrs() public method

public ToMgrs ( ) : string
return string

ToPoint() public method

Try not to use this function! Use MapPoint
public ToPoint ( ) : System.Windows.Point
return System.Windows.Point

ToString() public method

public ToString ( ) : string
return string

ToWebMercator() public method

public ToWebMercator ( ) : MapPoint
return MapPoint

WriteXml() public method

public WriteXml ( XmlWriter writer ) : void
writer System.Xml.XmlWriter
return void