WebMercatorConvertWebMercatortoSignedDegree Method

Converts Web Mercator coordinate to Signed Degree Lat/Long.

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public static double[] ConvertWebMercatortoSignedDegree(
	WebMercator wmt
)

Parameters

wmt  WebMercator
Web Mercator

Return Value

Double
double[lat, lng]

Example

The following example creates (converts to) a signed degree lat long double array based on a Web Mercator object.
C#
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"

See Also