public static WebMercatorPosition ToWebMercator(this SWEREF99Position pos) { var calc = new WebMercatorCalculator(); var wgs84 = pos.ToWGS84(); return(new WebMercatorPosition(calc.LatitudeToY(wgs84.Latitude), calc.LongitudeToX(wgs84.Longitude))); }
public static WebMercatorPosition ToWebMercator(this WGS84Position pos) { var calc = new WebMercatorCalculator(); return(new WebMercatorPosition(calc.LatitudeToY(pos.Latitude), calc.LongitudeToX(pos.Longitude))); }