Class Position
Class that implements the Position XML schema for 2 dimentional and 3 dimensional positions.
Implements
Inherited Members
Namespace: Pidf
Assembly: Ng911Lib.dll
Syntax
public class Position : IXmlSerializable
Constructors
| Edit this page View SourcePosition()
Default constructor.
Declaration
public Position()
Position(double, double)
Constructs a 2-dimensional Position object.
Declaration
public Position(double Lat, double Long)
Parameters
Type | Name | Description |
---|---|---|
double | Lat | Latitude in WGS84 degrees. |
double | Long | Longitude in WGS84 degrees. |
Position(double, double, double)
Constructs a 3-dimensional Position objec.
Declaration
public Position(double Lat, double Long, double Alt)
Parameters
Type | Name | Description |
---|---|---|
double | Lat | Latitude in WGS84 degrees. |
double | Long | Longitude in WGS84 degrees. |
double | Alt | Altitude in meters |
Properties
| Edit this page View SourceAltitude
Gets or sets the Altitude in meters above sea level. A value of double.NaN indicates that the Altitude is not set.
Declaration
public double Altitude { get; set; }
Property Value
Type | Description |
---|---|
double |
Latitude
Gets or sets the Latitude in WGS84 degrees.
Declaration
public double Latitude { get; set; }
Property Value
Type | Description |
---|---|
double |
Longitude
Gets or sets the Longitude in WGS84 degrees.
Declaration
public double Longitude { get; set; }
Property Value
Type | Description |
---|---|
double |
Methods
| Edit this page View SourceGetSchema()
IXmlSerializable.GetSchema(). Not used. Always returns null.
Declaration
public XmlSchema GetSchema()
Returns
Type | Description |
---|---|
XmlSchema |
ReadXml(XmlReader)
Implementation of the IXmlSerializable.ReadXml method that is called when de-serializing. Applications should not call this method.
Declaration
public void ReadXml(XmlReader reader)
Parameters
Type | Name | Description |
---|---|---|
XmlReader | reader | Source of the inner XML to use. |
WriteXml(XmlWriter)
Implementation of the IXmlSerializable.WriteXml method that is called when serializing. Applications should not call this method.
Declaration
public void WriteXml(XmlWriter writer)
Parameters
Type | Name | Description |
---|---|---|
XmlWriter | writer | Destination for the inner XML. |