WebMercatorConvertWebMercatortoSignedDegree Method
Converts Web Mercator coordinate to Signed Degree Lat/Long.
Namespace: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public static double[] ConvertWebMercatortoSignedDegree(
WebMercator wmt
)
- wmt WebMercator
- Web Mercator
Doubledouble[lat, lng]
The following example creates (converts to) a signed degree lat long double array based on a Web Mercator object.
WebMercator wmc = new WebMercator(8284118.2, 6339892.6);
double[] signed = WebMercator.ConvertWebMercatortoSignedDegree(wmc);
Coordinate c = new Coordinate(signed[0], signed[1], new EagerLoad(false));
Console.WriteLine(c); //N 49º 22' 54.431" E 74º 25' 3"