TMS

From OpenStreetMap Wiki
(Redirected from Tile Map Service)
Jump to navigation Jump to search

TMS (Tile Map Service) is a protocol for serving maps as tiles i.e. splitting the map up into a pyramid of images at multiple zoom levels.

The osgeo.org Tile Map Service Specification is the documentation for this standard. Full support for the protocol involves supporting alternate spatial referencing systems, so TMS can be regarded as half way between the flexibility of WMS and the rigid simplicity of the Slippy map tilenames used on the main OpenStreetMap tile server, and also used by google maps and many other map providers.

TileCache is one of the most popular server softwares for running a TMS with full compliance.


The Y coordinate

A common partial implementation of TMS provides something similar to Slippy map tilenames but with one important, and somewhat annoying difference: in the TMS standard, the Y coordinates are numbered from the south northwards, so the origin of coordinates is at the bottom left (SW); whereas Google tile coordinates have their origin at top left (NW), and they increase southwards. This is really just an unfortunate historical misalignment.

See Converting TMS Tile Coordinates to Google/Bing/OSM Tile Coordinates for a javascript conversion function enabling use of TMS Y-flipped tiles via a normal slippy map display library.

In JOSM, iD, Potlatch 2, and Merkaartor, you can use TMS tile sources (e.g., for imagery background) which do the Y coordinates the TMS way, by simply inserting a minus in the tile URL specifier.

See also