From a7d3edf15480bbbc4d3e6ba4b108e6d4dec698fb Mon Sep 17 00:00:00 2001 From: ClemensF Date: Mon, 10 Jun 2019 11:28:15 +0200 Subject: [PATCH] Version 4.12.2 Fixed MapProjections. --- MBTiles/UWP/MBTiles.UWP.csproj | 2 +- MapProjections/Shared/GeoApiProjection.cs | 2 +- MapProjections/Shared/PolarStereographicProjection.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MBTiles/UWP/MBTiles.UWP.csproj b/MBTiles/UWP/MBTiles.UWP.csproj index bc1a72bb..4a7cfb82 100644 --- a/MBTiles/UWP/MBTiles.UWP.csproj +++ b/MBTiles/UWP/MBTiles.UWP.csproj @@ -54,7 +54,7 @@ - 2.2.3 + 2.2.4 6.2.8 diff --git a/MapProjections/Shared/GeoApiProjection.cs b/MapProjections/Shared/GeoApiProjection.cs index bf1e4d1d..3ff14e1e 100644 --- a/MapProjections/Shared/GeoApiProjection.cs +++ b/MapProjections/Shared/GeoApiProjection.cs @@ -59,7 +59,7 @@ namespace MapControl.Projections if (scaleFactor != null) { - TrueScale = scaleFactor.Value * MetersPerDegree; + TrueScale = scaleFactor.Value * Wgs84MetersPerDegree; } if (!IsNormalCylindrical) diff --git a/MapProjections/Shared/PolarStereographicProjection.cs b/MapProjections/Shared/PolarStereographicProjection.cs index 0e211bb1..fb2d04e8 100644 --- a/MapProjections/Shared/PolarStereographicProjection.cs +++ b/MapProjections/Shared/PolarStereographicProjection.cs @@ -27,7 +27,7 @@ namespace MapControl.Projections public PolarStereographicProjection(string crsId, bool north, double scaleFactor = 1d, double falseEasting = 0d, double falseNorthing = 0d) { CrsId = crsId; - TrueScale = scaleFactor * MetersPerDegree; + TrueScale = scaleFactor * Wgs84MetersPerDegree; this.north = north; this.scaleFactor = scaleFactor; this.falseEasting = falseEasting;