Use mean radius in distance calculations

This commit is contained in:
ClemensFischer 2026-01-09 08:13:07 +01:00
parent c187f323a8
commit 23a8e49efb
8 changed files with 20 additions and 14 deletions

View file

@ -43,7 +43,7 @@ namespace MapControl.Projections
public override Point RelativeScale(double latitude, double longitude)
{
var lat = latitude * Math.PI / 180d;
var eSinLat = Wgs84Eccentricity * Math.Sin(lat);
var eSinLat = MapControl.WorldMercatorProjection.Wgs84Eccentricity * Math.Sin(lat);
var k = Math.Sqrt(1d - eSinLat * eSinLat) / Math.Cos(lat); // p.44 (7-8)
return new Point(k, k);