문제

I am trying to understand how tile server handle requests.

I red about Mapnik which "creates" the map using OSM,

Does "creates" means that every request is rendered and returned? If yes what is the performance hit (global map)?

Or it means that Mapnik Creates all tiles needed on initialization and then serves the right one upon request? if yes what is the total storage needed for all tiles(for global map)?

I am trying to find a way to build my own tile server (global map) while rendering it only once.

도움이 되었습니까?

해결책

With typical tile-based maps such as OSM's default Mapnik style, there is a cache to store previously rendered tiles, but it contains just a small subset of all possible tiles. Other tiles are calculated on-the-fly if a client tries to access them. Only a small percentage of the tiles are actually ever requested as most of them are likely not particularly interesting to users.

The OpenStreetMap wiki's page on Tile Disk Usage has some numbers with a breakdown by zoom level. According to this source, you are looking at roughly 50 TB of data if you want to store all tiles for a global map with 18 zoom levels. Other estimates range into the hundreds of TB, though.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top