Skip to content

WmtsTileMatrixSet

Namespace: ThinkGeo.Core

This class holds a collection of TileMatrix instances that share the same CRS.

public class WmtsTileMatrixSet : TileMatrixSet

Inheritance object → TileMatrixSet → WmtsTileMatrixSet

Properties

Id

Gets or sets the id of the TileMatrixSet.

public string Id { get; set; }

Property Value

string

Crs

Gets or sets the CRS (coordinate reference system) for the TileMatrixSet.

public string Crs { get; set; }

Property Value

string

BoundingBox

The boundingBox of this TileMatrixSet.

public RectangleShape BoundingBox { get; set; }

Property Value

RectangleShape

SupportedCrs

Gets or sets the EPSG code that this tile matrix set supports.

public int SupportedCrs { get; set; }

Property Value

int

Remarks:

A view of the inherited TileMatrixSet.Projection rather than a second copy of it. WMTS puts the coordinate system on the matrix set, which is where the base type carries it too, and a grid that answered one way here and another way there would be a grid nothing could trust. Zero means the set names no system.

TileWidth

This now equals to TileMatrices[0].TileWidth, suppose all the tile matrices have the same tile width. But you can create a tile matrix set with different tile width for each matrix.

public int TileWidth { get; set; }

Property Value

int

TileHeight

This now equals to TileMatrices[0].TileHeight, suppose all the tile matrices have the same tile height. But you can create a tile matrix set with different tile height for each matrix.

public int TileHeight { get; set; }

Property Value

int

TileMatrices

This property is used to store the collection of TileMatrix.

public Collection<TileMatrix> TileMatrices { get; set; }

Property Value

Collection<TileMatrix>

Projection

The coordinate system the grid is laid out in, or null when it is not stated.

public Projection Projection { get; set; }

Property Value

Projection

Remarks:

A grid states bounds and units; those are half of what a coordinate means. The root (-4500000, 0) - (5500000, 10000000) in metres is a UTM zone, and the same numbers read as web mercator land somewhere else entirely, so a grid that does not say which system it is in cannot be compared with another grid, and data cannot be converted onto it.

Null keeps the behaviour this type has always had: the plane is inferred from the root tile, and a root that matches mercator's square is treated as mercator. Stating it replaces that guess with an answer, which is what lets two grids be told apart when their bounds happen to look alike.

Constructors

WmtsTileMatrixSet(string, string)

Default constructor for the class.

public WmtsTileMatrixSet(string id, string crs)

Parameters

id string

crs string

WmtsTileMatrixSet()

Initializes a new instance of the WmtsTileMatrixSet class.

public WmtsTileMatrixSet()