CoordinateParse(String, DateTime, Allowed_Parse_Format) Method
Parses a string into a Coordinate with specified date.
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,
Allowed_Parse_Format formats
)
- value String
- Coordinate string
- geoDate DateTime
- GeoDate
- formats Allowed_Parse_Format
- Allowable parse formats
CoordinateCoordinate
The following example parses a decimal degree formatted geodetic coordinate string, with a provided GeoDate. Parsable format is restricted to Lat/Long and MGRS.
Allowed_Parse_Format formats = Allowed_Parse_Format.Lat_Long | Allowed_Parse_Format.MGRS;
Coordinate c = Coordinate.Parse("N 32.891º W 64.872º", new DateTime(2018,7,7), formats);