Added Ed50UtmProjection

This commit is contained in:
Clemens 2022-01-23 23:43:49 +01:00
parent 0896209e22
commit a0ee9ebbd1
2 changed files with 57 additions and 0 deletions

View file

@ -8,6 +8,8 @@ namespace MapControl.Projections
{
public const int WorldMercator = 3395;
public const int WebMercator = 3857;
public const int Ed50UtmFirst = 23028;
public const int Ed50UtmLast = 23038;
public const int Etrs89UtmFirst = 25828;
public const int Etrs89UtmLast = 25838;
public const int Wgs84UtmNorthFirst = 32601;
@ -33,6 +35,10 @@ namespace MapControl.Projections
projection = new WebMercatorProjection();
break;
case int c when c >= Ed50UtmFirst && c <= Ed50UtmLast:
projection = new Ed50UtmProjection(epsgCode % 100);
break;
case int c when c >= Etrs89UtmFirst && c <= Etrs89UtmLast:
projection = new Etrs89UtmProjection(epsgCode % 100);
break;