WebMercatorTryParse Method

Attempts to parse a string into an Web Mercator 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 WebMercator wmc
)

Parameters

value  String
string
wmc  WebMercator
WebMercator

Return Value

Boolean
WebMercator

Example

The following example attempts to parse a Web Mercator coordinate.
C#
WebMercator wmc;
if(!WebMercator.TryParse("8284118.2 6339892.6", out wmc))
{
    Console.WriteLine(wmc);//8284118.2mE 6339892.6mN
}

See Also