WebMercatorConvertWebMercatortoLatLong(WebMercator, EagerLoad) Method

Converts Web Mercator coordinate to Lat/Long.

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 2.21.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public static Coordinate ConvertWebMercatortoLatLong(
	WebMercator wmt,
	EagerLoad eagerLoad
)

Parameters

wmt  WebMercator
Web Mercator
eagerLoad  EagerLoad
EagerLoad

Return Value

Coordinate
Coordinate

Example

The following example creates (converts to) a geodetic Coordinate object based on a Web Mercator object. Performance is maximized by turning off EagerLoading.
C#
EagerLoad el = new EagerLoad(false);
WebMercator wmc = new WebMercator(8284118.2, 6339892.6);
Coordinate c = WebMercator.ConvertWebMercatortoLatLong(wmc, el);
Console.WriteLine(c); //N 49º 22' 54.431" E 74º 25' 3"

See Also