Minor improvements

This commit is contained in:
ClemensFischer 2022-12-13 22:12:49 +01:00
parent 91879054fa
commit 7cf4ed47a3
4 changed files with 9 additions and 9 deletions

View file

@ -179,10 +179,10 @@ namespace MapControl
{
if (geoKeyDirectory[i] == ProjectedCRSGeoKey && geoKeyDirectory[i + 1] == 0)
{
var crsId = $"EPSG:{geoKeyDirectory[i + 3]}";
int epsgCode = geoKeyDirectory[i + 3];
projection = MapProjection.Factory.GetProjection(crsId) ??
throw new ArgumentException($"Can not create projection {crsId} in {sourcePath}.");
projection = MapProjection.Factory.GetProjection(epsgCode) ??
throw new ArgumentException($"Can not create projection EPSG:{epsgCode} in {sourcePath}.");
break;
}