コード例 #1
0
        private System.Windows.Point GeodeticToWebMercator(System.Windows.Point point)
        {
            try
            {
                var result = IRI.Ham.CoordinateSystem.MapProjection.MapProjects.GeodeticWgs84ToWebMercator(point.AsPoint());

                return(new System.Windows.Point(result.X, result.Y));
            }
            catch (Exception)
            {
                return(new System.Windows.Point(double.NaN, double.NaN));
            }
        }