CoordinateTryParse(String, Coordinate) Method

Attempts to parse a string into a Coordinate.

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public static bool TryParse(
	string value,
	out Coordinate coordinate
)

Parameters

value  String
Coordinate string
coordinate  Coordinate
Coordinate

Return Value

Boolean
boolean

Example

The following example parses a decimal degree formatted geodetic coordinate string.
C#
Coordinate c;
if(Coordinate.TryParse("N 32.891º W 64.872º", out c))
{
    Console.WriteLine(c); //N 32º 53' 28.212" W 64º 52' 20.914"
}

See Also