Show / Hide Table of Contents

Class CoordinateConverter

Represents a coordinate convertor that encodes/decodes coordinates into the binary OpenLR format.

Inheritance
System.Object
CoordinateConverter
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public static class CoordinateConverter

Methods

Decode(Byte[])

Decodes binary OpenLR coordinate data into a coordinate.

Declaration
public static Coordinate Decode(byte[] data)
Parameters
System.Byte[] data

Returns
Coordinate

Decode(Byte[], Int32)

Decodes binary OpenLR coordinate data into a coordinate.

Declaration
public static Coordinate Decode(byte[] data, int startIndex)
Parameters
System.Byte[] data

System.Int32 startIndex

Returns
Coordinate

DecodeInt16(Byte[], Int32)

Decodes a little-endian 16-bit signed integer from the given byte array into a 32-bit signed integer.

Declaration
public static int DecodeInt16(byte[] data, int startIndex)
Parameters
System.Byte[] data

System.Int32 startIndex

Returns
System.Int32

DecodeInt24(Byte[], Int32)

Decodes a little-endian 24-bit signed integer from the given byte array into a 32-bit signed integer.

Declaration
public static int DecodeInt24(byte[] data, int startIndex)
Parameters
System.Byte[] data

System.Int32 startIndex

Returns
System.Int32

DecodeRelative(Coordinate, Byte[])

Decodes binary OpenLR relative coordinate data into a coordinate.

Declaration
public static Coordinate DecodeRelative(Coordinate reference, byte[] data)
Parameters
Coordinate reference

System.Byte[] data

Returns
Coordinate

DecodeRelative(Coordinate, Byte[], Int32)

Decodes binary OpenLR relative coordinate data into a coordinate.

Declaration
public static Coordinate DecodeRelative(Coordinate reference, byte[] data, int startIndex)
Parameters
Coordinate reference

System.Byte[] data

System.Int32 startIndex

Returns
Coordinate

Encode(Coordinate, Byte[], Int32)

Decodes the given coordinate into a binary OpenLR coordinate.

Declaration
public static void Encode(Coordinate coordinate, byte[] data, int startIndex)
Parameters
Coordinate coordinate

System.Byte[] data

System.Int32 startIndex

EncodeDegree(Double)

Encodes the given degrees into an integer.

Declaration
public static int EncodeDegree(double value)
Parameters
System.Double value

Returns
System.Int32

EncodeInt16(Int32, Byte[], Int32)

Encodes a 32-bit signed integer into a little-endian 16-bit signed integer into the given byte array.

Declaration
public static void EncodeInt16(int value, byte[] data, int startIndex)
Parameters
System.Int32 value

System.Byte[] data

System.Int32 startIndex

EncodeInt24(Int32, Byte[], Int32)

Encodes a 32-bit signed integer into a little-endian 24-bit signed integer into the given byte array.

Declaration
public static void EncodeInt24(int value, byte[] data, int startIndex)
Parameters
System.Int32 value

System.Byte[] data

System.Int32 startIndex

EncodeRelative(Coordinate, Coordinate, Byte[], Int32)

Decodes the given coorrdinate into a binary OpenLR coordinate.

Declaration
public static void EncodeRelative(Coordinate reference, Coordinate coordinate, byte[] data, int startIndex)
Parameters
Coordinate reference

Coordinate coordinate

System.Byte[] data

System.Int32 startIndex

Back to top Built by Itinero, MIT licensed.