mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 22:46:58 +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
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue