mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Map projections
This commit is contained in:
parent
e90bdcf371
commit
7c8393d785
7 changed files with 24 additions and 27 deletions
|
|
@ -94,12 +94,11 @@ namespace MapControl
|
|||
}
|
||||
|
||||
var e = Math.Sqrt((2d - Flattening) * Flattening);
|
||||
|
||||
var r = Math.Sqrt(x * x + y * y); // p.162 (20-18)
|
||||
var t = r * Math.Sqrt(Math.Pow(1d + e, 1d + e) * Math.Pow(1d - e, 1d - e))
|
||||
/ (2d * EquatorialRadius * ScaleFactor); // p.162 (21-39)
|
||||
|
||||
var lat = WorldMercatorProjection.LatitudeFromSeriesApproximation(e, t); // p.162 (3-5)
|
||||
var lat = WorldMercatorProjection.ApproximateLatitude(e, t); // p.162 (3-5)
|
||||
var lon = Math.Atan2(x, -y); // p.162 (20-16)
|
||||
|
||||
if (!IsNorth)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue