mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Use mean radius in distance calculations
This commit is contained in:
parent
c187f323a8
commit
23a8e49efb
8 changed files with 20 additions and 14 deletions
|
|
@ -29,7 +29,11 @@ namespace MapControl
|
|||
public const double Wgs84EquatorialRadius = 6378137d;
|
||||
public const double Wgs84MeterPerDegree = Wgs84EquatorialRadius * Math.PI / 180d;
|
||||
public const double Wgs84Flattening = 1d / 298.257223563;
|
||||
public static readonly double Wgs84Eccentricity = Math.Sqrt((2d - Wgs84Flattening) * Wgs84Flattening);
|
||||
|
||||
// Arithmetic mean radius (2*a + b) / 3 == (1 - f/3) * a
|
||||
// https://en.wikipedia.org/wiki/Earth_radius#Arithmetic_mean_radius
|
||||
//
|
||||
public const double Wgs84MeanRadius = (1d - Wgs84Flattening / 3d) * Wgs84EquatorialRadius;
|
||||
|
||||
public static MapProjectionFactory Factory
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue