From 70afff72e0c0e0c93ae8a54816184edac504bf50 Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Wed, 17 Apr 2024 22:07:52 +0200 Subject: [PATCH] Update GeoApiProjection.cs --- MapProjections/Shared/GeoApiProjection.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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") {