mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 22:18:56 +00:00
Version 4.16.0. Improved MapProjection.
This commit is contained in:
parent
60e0093785
commit
12566506f8
14 changed files with 136 additions and 121 deletions
|
|
@ -27,13 +27,17 @@ namespace MapControl.Projections
|
|||
public PolarStereographicProjection(string crsId, bool north, double scaleFactor = 1d, double falseEasting = 0d, double falseNorthing = 0d)
|
||||
{
|
||||
CrsId = crsId;
|
||||
TrueScale = scaleFactor * Wgs84MetersPerDegree;
|
||||
this.north = north;
|
||||
this.scaleFactor = scaleFactor;
|
||||
this.falseEasting = falseEasting;
|
||||
this.falseNorthing = falseNorthing;
|
||||
}
|
||||
|
||||
public override double TrueScale
|
||||
{
|
||||
get { return scaleFactor * Wgs84MetersPerDegree; }
|
||||
}
|
||||
|
||||
public override Vector GetMapScale(Location location)
|
||||
{
|
||||
var lat = (north ? location.Latitude : -location.Latitude) * Math.PI / 180d;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue