mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update WmtsCapabilities.cs
This commit is contained in:
parent
bf447a00af
commit
28b8ef059b
|
|
@ -220,11 +220,13 @@ namespace MapControl
|
|||
throw new ArgumentException($"No SupportedCRS element found in TileMatrixSet \"{identifier}\".");
|
||||
}
|
||||
|
||||
const string urnPrefix = "urn:ogc:def:crs:EPSG:";
|
||||
const string urnPrefix = "urn:ogc:def:crs:";
|
||||
|
||||
if (supportedCrs.StartsWith(urnPrefix)) // e.g. "urn:ogc:def:crs:EPSG:6.18:3857")
|
||||
{
|
||||
supportedCrs = "EPSG:" + supportedCrs.Substring(urnPrefix.Length).Split(':').Last();
|
||||
var crsComponents = supportedCrs.Substring(urnPrefix.Length).Split(':');
|
||||
|
||||
supportedCrs = crsComponents.First() + ":" + crsComponents.Last();
|
||||
}
|
||||
|
||||
var tileMatrixes = new List<WmtsTileMatrix>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue