Map projections

This commit is contained in:
ClemensFischer 2025-02-12 19:46:25 +01:00
parent e90bdcf371
commit 7c8393d785
7 changed files with 24 additions and 27 deletions

View file

@ -24,6 +24,11 @@ namespace MapControl
public Wgs84UtmProjection(int zone, bool north)
{
SetZone(zone, north);
EquatorialRadius = Wgs84EquatorialRadius;
Flattening = Wgs84Flattening;
ScaleFactor = 0.9996;
FalseEasting = 5e5;
}
protected void SetZone(int zone, bool north)
@ -36,12 +41,8 @@ namespace MapControl
Zone = zone;
IsNorth = north;
CrsId = $"EPSG:{(north ? 32600 : 32700) + zone}";
EquatorialRadius = Wgs84EquatorialRadius;
Flattening = Wgs84Flattening;
ScaleFactor = 0.9996;
CentralMeridian = Zone * 6d - 183d;
FalseEasting = 5e5;
FalseNorthing = IsNorth ? 0d : 1e7;
CentralMeridian = zone * 6d - 183d;
FalseNorthing = north ? 0d : 1e7;
}
}