mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-02-06 15:54:14 +01:00
Removed Nad27UtmProjection
This commit is contained in:
parent
cf3401d519
commit
f848e56b3c
|
|
@ -27,7 +27,7 @@ namespace MapControl
|
|||
Wgs84UpsNorthProjection.DefaultCrsId => new Wgs84UpsNorthProjection(),
|
||||
Wgs84UpsSouthProjection.DefaultCrsId => new Wgs84UpsSouthProjection(),
|
||||
EquirectangularProjection.DefaultCrsId or "CRS:84" => new EquirectangularProjection(crsId),
|
||||
_ => null,
|
||||
_ => null
|
||||
};
|
||||
|
||||
if (projection == null && crsId.StartsWith(StereographicProjection.DefaultCrsId))
|
||||
|
|
@ -44,8 +44,6 @@ namespace MapControl
|
|||
{
|
||||
var c when c is >= Etrs89UtmProjection.FirstZoneEpsgCode
|
||||
and <= Etrs89UtmProjection.LastZoneEpsgCode => new Etrs89UtmProjection(c % 100),
|
||||
var c when c is >= Nad27UtmProjection.FirstZoneEpsgCode
|
||||
and <= Nad27UtmProjection.LastZoneEpsgCode => new Nad27UtmProjection(c % 100),
|
||||
var c when c is >= Nad83UtmProjection.FirstZoneEpsgCode
|
||||
and <= Nad83UtmProjection.LastZoneEpsgCode => new Nad83UtmProjection(c % 100),
|
||||
var c when c is >= Wgs84UtmProjection.FirstZoneNorthEpsgCode
|
||||
|
|
|
|||
|
|
@ -51,16 +51,6 @@ namespace MapControl
|
|||
A = equatorialRadius / (1d + n) * (1d + n2 / 4d + n2 * n2 / 64d);
|
||||
}
|
||||
|
||||
public TransverseMercatorProjection(string crsId, double equatorialRadius, double flattening, int utmZone, bool north = true)
|
||||
: this(equatorialRadius, flattening)
|
||||
{
|
||||
CrsId = crsId;
|
||||
ScaleFactor = 0.9996;
|
||||
CentralMeridian = utmZone * 6d - 183d;
|
||||
FalseEasting = 5e5;
|
||||
FalseNorthing = north ? 0d : 1e7;
|
||||
}
|
||||
|
||||
public override double GridConvergence(double latitude, double longitude)
|
||||
{
|
||||
// φ
|
||||
|
|
|
|||
Loading…
Reference in a new issue