/// <summary> /// This will convert geometry and project it from sourceEpsg to EPSG 4326 /// </summary> /// <param name="geometry"></param> /// <param name="pStart"></param> /// <returns></returns> public static string ToGeoJson(this System.Data.Entity.Spatial.DbGeometry geometry, ProjectionInfo pStart) { geometry = geometry.MakeValid(); return(GeoJsonHelper.ToGeoJson(geometry, pStart, Definitions.WorldProjection)); }
public static string ToGeoJson(this System.Data.Entity.Spatial.DbGeometry geometry) { return(GeoJsonHelper.ToGeoJson(geometry)); }