Exemple #1
0
        /// <summary>
        /// Projects a SqlGeography to transverse mercator.
        /// </summary>
        /// <param name="geography"></param>
        /// <returns></returns>
        public static SqlGeometry FromLonLat(this SqlGeography geography)
        {
            var projectionSink = new ProjectSink();

            geography.Populate(projectionSink);
            return(projectionSink.ConstructedGeometry);
        }
 /// <summary>
 /// Projects a SqlGeography to transverse mercator.
 /// </summary>
 /// <param name="geography"></param>
 /// <returns></returns>
 public static SqlGeometry FromLonLat(this SqlGeography geography)
 {
     var projectionSink = new ProjectSink();
     geography.Populate(projectionSink);
     return projectionSink.ConstructedGeometry;
 }