I am trying to write a program which will render tiles from EPSG2180-based WMTS server. Given coordinates of a point (WSG84 or EPSG2180, I can convert from one to another) I want to render a tile containing it.
Each TileMatrix
has info about TileWidth
/Height
, MatrixWidth
/Height
, TopLeftCorner
and I understand what they mean. However, they don't seem sufficient to translate lat/lon to row/column. Apart from those each TileMatrix has mysterious ScaleDenominator
value.
What is ScaleDenominator
and what is the relationship between it and other values describing TileMatrix
? How can I use it to translate lat/lon to tile's row/column?