Exemplo n.º 1
0
 /// <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));
 }
Exemplo n.º 2
0
 public static string ToGeoJson(this System.Data.Entity.Spatial.DbGeometry geometry)
 {
     return(GeoJsonHelper.ToGeoJson(geometry));
 }