throw ArgumentException when projection could not be created

This commit is contained in:
ClemensFischer 2024-09-12 13:13:51 +02:00
parent 8e835e5475
commit 85cf0483ec
2 changed files with 5 additions and 3 deletions

View file

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