mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
WMTS tile handling
This commit is contained in:
parent
6d359a5a91
commit
0e27e95c6f
11 changed files with 100 additions and 71 deletions
|
|
@ -10,11 +10,14 @@ namespace MapControl
|
|||
{
|
||||
public class WmtsTileMatrix
|
||||
{
|
||||
// See 07-057r7_Web_Map_Tile_Service_Standard.pdf, section 6.1.a, page 8:
|
||||
// "standardized rendering pixel size" is 0.28 mm
|
||||
|
||||
public WmtsTileMatrix(string identifier, double scaleDenominator, Point topLeft,
|
||||
int tileWidth, int tileHeight, int matrixWidth, int matrixHeight)
|
||||
{
|
||||
Identifier = identifier;
|
||||
Scale = 1 / (scaleDenominator * 0.00028);
|
||||
Scale = 1 / (scaleDenominator * 0.00028); // 0.28 mm
|
||||
TopLeft = topLeft;
|
||||
TileWidth = tileWidth;
|
||||
TileHeight = tileHeight;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue