WebMercatorTryParse Method
Attempts to parse a string into an Web Mercator coordinate.
Namespace: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public static bool TryParse(
string value,
out WebMercator wmc
)
- value String
- string
- wmc WebMercator
- WebMercator
BooleanWebMercator
The following example attempts to parse a Web Mercator coordinate.
WebMercator wmc;
if(!WebMercator.TryParse("8284118.2 6339892.6", out wmc))
{
Console.WriteLine(wmc);//8284118.2mE 6339892.6mN
}