C# Class DataServer.Position

Inheritance: PropertyChangedBase, IXmlSerializable, ITrackLog, IConvertibleGeoJson
Afficher le fichier Open project: TNOCS/csTouch Class Usage Examples

Private Properties

Свойство Type Description
DegreeToRadian double
RadianToDegree double
ToBearing double

Méthodes publiques

Méthode 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

Méthode Description
DegreeToRadian ( double angle ) : double
RadianToDegree ( double angle ) : double
ToBearing ( double radians ) : double

Method Details

AngleAndDistance() public méthode

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

Bearing() public méthode

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

Clone() public méthode

public Clone ( ) : Position
Résultat Position

Distance() public méthode

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

FromCsv() public méthode

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

FromGeoJson() public méthode

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

FromGeoJson() public méthode

public FromGeoJson ( string geoJson, bool newObject ) : IConvertibleGeoJson
geoJson string
newObject bool
Résultat IConvertibleGeoJson

GetSchema() public méthode

public GetSchema ( ) : XmlSchema
Résultat System.Xml.Schema.XmlSchema

Position() public méthode

public Position ( ) : System
Résultat System

Position() public méthode

public Position ( double longitude, double latitude ) : System
longitude double
latitude double
Résultat System

Position() public méthode

public Position ( double longitude, double latitude, double altitude ) : System
longitude double
latitude double
altitude double
Résultat System

Position() public méthode

public Position ( double longitude, double latitude, double altitude, double speed, double course ) : System
longitude double
latitude double
altitude double
speed double
course double
Résultat System

Position() public méthode

public Position ( string csvString, char separator = ',' ) : System
csvString string
separator char
Résultat System

ReadXml() public méthode

public ReadXml ( XmlReader reader ) : void
reader System.Xml.XmlReader
Résultat void

ToCsv() public méthode

public ToCsv ( char separator = ',' ) : string
separator char
Résultat string

ToGeoJson() public méthode

public ToGeoJson ( ) : string
Résultat string

ToMapPoint() public méthode

public ToMapPoint ( ) : MapPoint
Résultat MapPoint

ToMgrs() public méthode

public ToMgrs ( ) : string
Résultat string

ToPoint() public méthode

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

ToString() public méthode

public ToString ( ) : string
Résultat string

ToWebMercator() public méthode

public ToWebMercator ( ) : MapPoint
Résultat MapPoint

WriteXml() public méthode

public WriteXml ( XmlWriter writer ) : void
writer System.Xml.XmlWriter
Résultat void