TileSources, WMTS

This commit is contained in:
ClemensFischer 2025-10-29 18:59:19 +01:00
parent 605185db6e
commit ce7c33f6e4
7 changed files with 70 additions and 63 deletions

View file

@ -6,15 +6,12 @@ using Avalonia;
namespace MapControl
{
// See 07-057r7_Web_Map_Tile_Service_Standard.pdf, section 6.1.a, page 8:
// "standardized rendering pixel size" is 0.28 mm
//
public class WmtsTileMatrix(
string identifier, double scaleDenominator, Point topLeft,
string identifier, double scale, Point topLeft,
int tileWidth, int tileHeight, int matrixWidth, int matrixHeight)
{
public string Identifier { get; } = identifier;
public double Scale { get; } = 1 / (scaleDenominator * 0.00028); // 0.28 mm
public double Scale { get; } = scale;
public Point TopLeft { get; } = topLeft;
public int TileWidth { get; } = tileWidth;
public int TileHeight { get; } = tileHeight;