XAML-Map-Control/MapProjections/Shared/Wgs84UtmProjection.cs

23 lines
709 B
C#
Raw Normal View History

2025-02-27 18:46:32 +01:00
using ProjNet.CoordinateSystems;
namespace MapControl.Projections
{
2022-12-14 18:02:19 +01:00
/// <summary>
/// WGS84 Universal Transverse Mercator Projection -
/// EPSG:32601 to EPSG:32660 and EPSG:32701 to EPSG:32760.
2022-12-14 18:02:19 +01:00
/// </summary>
2026-01-15 11:04:11 +01:00
public class Wgs84UtmProjection : ProjNetMapProjection
{
public int Zone { get; }
public Hemisphere Hemisphere { get; }
2022-12-14 18:02:19 +01:00
2026-01-10 16:21:55 +01:00
public Wgs84UtmProjection(int zone, Hemisphere hemisphere)
: base(new MapControl.Wgs84UtmProjection(zone, hemisphere))
{
2022-12-14 18:02:19 +01:00
Zone = zone;
2026-01-10 16:21:55 +01:00
Hemisphere = hemisphere;
2026-01-10 21:36:22 +01:00
CoordinateSystem = ProjectedCoordinateSystem.WGS84_UTM(zone, hemisphere == Hemisphere.North);
2022-12-14 18:02:19 +01:00
}
}
}