CoordinateParse(String, Allowed_Parse_Format) Method

Parses a string into a Coordinate.

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 2.21.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public static Coordinate Parse(
	string value,
	Allowed_Parse_Format formats
)

Parameters

value  String
Coordinate string
formats  Allowed_Parse_Format
Allowable parse formats

Return Value

Coordinate
Coordinate

Example

The following example parses a decimal degree formatted geodetic coordinate string. Parsable format is restricted to Lat/Long and MGRS.
C#
Allowed_Parse_Format formats = Allowed_Parse_Format.Lat_Long | Allowed_Parse_Format.MGRS;
Coordinate c = Coordinate.Parse("N 32.891º W 64.872º", formats);

See Also