Updated WmtsTileMatrixSet

This commit is contained in:
ClemensFischer 2025-12-01 21:21:28 +01:00
parent ab1695b107
commit baea814df0
3 changed files with 10 additions and 33 deletions

View file

@ -1,30 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
namespace MapControl
{
public class WmtsTileMatrixSet
{
public WmtsTileMatrixSet(string identifier, string supportedCrsId, IEnumerable<WmtsTileMatrix> tileMatrixes)
{
if (string.IsNullOrEmpty(supportedCrsId))
{
throw new ArgumentException($"The {nameof(supportedCrsId)} argument must not be null or empty.", nameof(supportedCrsId));
}
if (tileMatrixes == null || !tileMatrixes.Any())
{
throw new ArgumentException($"The {nameof(tileMatrixes)} argument must not be null or an empty collection.", nameof(tileMatrixes));
}
Identifier = identifier;
SupportedCrsId = supportedCrsId;
TileMatrixes = tileMatrixes.OrderBy(m => m.Scale).ToList();
}
public string Identifier { get; }
public string SupportedCrsId { get; }
public IList<WmtsTileMatrix> TileMatrixes { get; }
}
}