mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
throw ArgumentException when projection could not be created
This commit is contained in:
parent
8e835e5475
commit
85cf0483ec
2 changed files with 5 additions and 3 deletions
|
|
@ -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}\".");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue