CoordinateParse(String, DateTime, CartesianType, Allowed_Parse_Format) Method
Parses a string into a Coordinate with specified DateTime and Cartesian system type.
Namespace: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public static Coordinate Parse(
string value,
DateTime geoDate,
CartesianType cartesianType,
Allowed_Parse_Format formats
)
- value String
- Coordinate string
- geoDate DateTime
- GeoDate
- cartesianType CartesianType
- Cartesian Type
- formats Allowed_Parse_Format
- Allowed parse formats
CoordinateCoordinate
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. Parsable format is restricted to Lat/Long and Cartesian/ECEF.
Allowed_Parse_Format formats = Allowed_Parse_Format.Lat_Long | Allowed_Parse_Format.Cartesian_ECEF;
Coordinate c = Coordinate.Parse("5242.097 km, 2444.43 km, 2679.074 km", new DateTime(2018,7,7), CartesianType.ECEF, formats);