Ejemplo n.º 1
0
        public static DbGeography ConvertFrom(Microsoft.Spatial.Geography geo)
        {
            string geographyEwkt = geo.ToString();
            int    semicolon     = geographyEwkt.IndexOf(';');

            string geographyWkt = geographyEwkt.Substring(semicolon + 1);

            return(DbGeography.FromText(geographyWkt, int.Parse(geo.CoordinateSystem.Id)));
        }