Update GeoApiProjection.cs

This commit is contained in:
ClemensFischer 2024-04-17 22:07:52 +02:00
parent a741877e80
commit 70afff72e0

View file

@ -61,9 +61,9 @@ namespace MapControl.Projections
.CreateFromCoordinateSystems(coordinateSystem, GeographicCoordinateSystem.WGS84)
.MathTransform;
CrsId = (!string.IsNullOrEmpty(coordinateSystem.Authority) && coordinateSystem.AuthorityCode > 0)
? string.Format("{0}:{1}", coordinateSystem.Authority, coordinateSystem.AuthorityCode)
: "";
CrsId = !string.IsNullOrEmpty(coordinateSystem.Authority) && coordinateSystem.AuthorityCode > 0
? $"{coordinateSystem.Authority}:{coordinateSystem.AuthorityCode}"
: string.Empty;
if (CrsId == "EPSG:3857")
{