mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
MapProjectionFactory throws NotSupportedException
This commit is contained in:
parent
85cf0483ec
commit
45b9fb2e89
5 changed files with 48 additions and 23 deletions
|
|
@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue