public static Point GeographicToWebMercator(double latitude, double longitude) { var x = LongitudeToX(longitude); var y = LatitudeToY(latitude); return new Point() { X = x, Y = y }; }
private IPoint GeographicToWebMercatorPoint(IPoint geographicPoint) { Point tempPoint = WebMercatorUtil.GeographicToWebMercator(geographicPoint.Y, geographicPoint.X); IPoint point = new PointClass(); point.PutCoords(tempPoint.X, tempPoint.Y); point.SpatialReference = _spatialReference; return(point); }