2025-02-27 18:46:32 +01:00
|
|
|
|
using ProjNet.CoordinateSystems;
|
2018-08-29 20:54:42 +02:00
|
|
|
|
|
|
|
|
|
|
namespace MapControl.Projections
|
|
|
|
|
|
{
|
2022-12-14 18:02:19 +01:00
|
|
|
|
/// <summary>
|
2026-01-29 21:36:11 +01:00
|
|
|
|
/// 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
|
2018-08-29 20:54:42 +02:00
|
|
|
|
{
|
2026-01-29 21:36:11 +01:00
|
|
|
|
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)
|
2026-01-29 21:36:11 +01:00
|
|
|
|
: base(new MapControl.Wgs84UtmProjection(zone, hemisphere))
|
2018-10-03 11:27:55 +02:00
|
|
|
|
{
|
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
|
|
|
|
}
|
|
|
|
|
|
}
|
2018-08-29 20:54:42 +02:00
|
|
|
|
}
|