CoordinateParse(String, DateTime, CartesianType, EagerLoad) Method

Parses a string into a Coordinate with a specified date, Cartesian system type and eager loading settings.

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public static Coordinate Parse(
	string value,
	DateTime geoDate,
	CartesianType cartesianType,
	EagerLoad eagerLoad
)

Parameters

value  String
Coordinate string
geoDate  DateTime
GeoDate
cartesianType  CartesianType
Cartesian Type
eagerLoad  EagerLoad
Eager loading options

Return Value

Coordinate
Coordinate

Example

The following example parses an ECEF formatted coordinate string, with an included GeoDate. Because this is an ECEF Cartesian type coordinate, we will specify the Cartesian system type. Eager loading options have been specified for efficiency.
C#
EagerLoad el = new EagerLoad(EagerLoadType.Cartesian);
Coordinate c = Coordinate.Parse("5242.097 km, 2444.43 km, 2679.074 km", new DateTime(2018,7,7), CartesianType.ECEF, el);

See Also