WebMercatorConvertWebMercatortoLatLong(Double, Double, EagerLoad) Method
Converts Web Mercator coordinate to Lat/Long.
Namespace: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public static Coordinate ConvertWebMercatortoLatLong(
double easting,
double northing,
EagerLoad eagerLoad
)
- easting Double
- Easting
- northing Double
- Northing
- eagerLoad EagerLoad
- EagerLoad
CoordinateCoordinate
The following example creates (converts to) a geodetic Coordinate object based on Web Mercator Easting and Northing values.
Performance is maximized by turning off EagerLoading.
EagerLoad el = new EagerLoad(false);
Coordinate c = WebMercator.ConvertWebMercatortoLatLong(8284118.2, 6339892.6, el);
Console.WriteLine(c); //N 49º 22' 54.431" E 74º 25' 3"