Exemplo n.º 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);
        }
Exemplo n.º 2
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;
 }