MapProjectionFactory throws NotSupportedException

This commit is contained in:
ClemensFischer 2024-09-12 15:48:20 +02:00
parent 85cf0483ec
commit 45b9fb2e89
5 changed files with 48 additions and 23 deletions

View file

@ -165,8 +165,7 @@ namespace MapControl
{
var epsgCode = geoKeyDirectory[i + 3];
mapProjection = MapProjectionFactory.Instance.GetProjection($"EPSG:{epsgCode}") ??
throw new ArgumentException($"Can not create MapProjection \"EPSG:{epsgCode}\".");
mapProjection = MapProjectionFactory.Instance.GetProjection($"EPSG:{epsgCode}");
}
}
}