Skip to content

Commit

Permalink
earth radius conforms to WGS84
Browse files Browse the repository at this point in the history
  • Loading branch information
xfischer committed Mar 23, 2020
1 parent fbf8320 commit 3b93492
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DEM.Net.Core/IO/gpx/Gpx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class GpxMetadata

public class GpxPoint
{
private const double EARTH_RADIUS = 6371; // [km]
private const double EARTH_RADIUS = 6378; // [km]
private const double RADIAN = Math.PI / 180;

protected GpxProperties Properties_ = new GpxProperties();
Expand Down
2 changes: 1 addition & 1 deletion DEM.Net.Core/Services/GeometryService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace DEM.Net.Core
public static class GeometryService
{
private const int WGS84_SRID = 4326;
private const double EARTH_RADIUS = 6371008.0; // [m]
private const double EARTH_RADIUS = 6378137.0; // [m]
private const double RADIAN = Math.PI / 180;

private static WKTReader _wktReader;
Expand Down

0 comments on commit 3b93492

Please sign in to comment.