From bf447a00af3f1171542a0c2618ae0346d454c472 Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Thu, 13 Feb 2025 10:46:05 +0100 Subject: [PATCH] Update WmtsCapabilities.cs --- MapControl/Shared/WmtsCapabilities.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/MapControl/Shared/WmtsCapabilities.cs b/MapControl/Shared/WmtsCapabilities.cs index cf37a446..22f3c0d4 100644 --- a/MapControl/Shared/WmtsCapabilities.cs +++ b/MapControl/Shared/WmtsCapabilities.cs @@ -224,12 +224,7 @@ namespace MapControl if (supportedCrs.StartsWith(urnPrefix)) // e.g. "urn:ogc:def:crs:EPSG:6.18:3857") { - var crs = supportedCrs.Substring(urnPrefix.Length).Split(':'); - - if (crs.Length > 1) - { - supportedCrs = "EPSG:" + crs[1]; - } + supportedCrs = "EPSG:" + supportedCrs.Substring(urnPrefix.Length).Split(':').Last(); } var tileMatrixes = new List();