Removed Nad27UtmProjection

This commit is contained in:
ClemensFischer 2026-02-04 20:25:47 +01:00
parent cf3401d519
commit f848e56b3c
2 changed files with 1 additions and 13 deletions

View file

@ -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

View file

@ -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)
{
// φ