mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Minor improvements
This commit is contained in:
parent
91879054fa
commit
7cf4ed47a3
4 changed files with 9 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue