diff --git a/MapProjections/Shared/GeoApiProjection.cs b/MapProjections/Shared/GeoApiProjection.cs index 6550cc21..d44a7336 100644 --- a/MapProjections/Shared/GeoApiProjection.cs +++ b/MapProjections/Shared/GeoApiProjection.cs @@ -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") {