NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

On average, if all tiles for an average US state were rendered at 15 zoom levels with default styles using Mapnik, how much would be the total used disk space by all PNG files? 200MB/500MB/1GB/5GB/1TB? I know for the whole world it is 20TB.

asked 15 May '12, 19:26

LiveCarMap's gravatar image

LiveCarMap
41226
accept rate: 0%


To get an estimate of the number of tiles you need to cover a state, go to map.geofabrik.de and activate the "tile coordinates" overlay (from the layer switcher in the top right corner of the map). Zoom in on the state you're interested in. You'll get something like this:

tiles colorado

So, Colorado for example has about one and half tiles on zoom level 6. The number of tiles quadruples for each zoom level, so you are looking at...

  • 1.5 tiles on z6
  • 6 tiles on z7
  • 24 tiles on z8
  • 96 on z9
  • 400 on z10
  • 1600 on z11
  • 6400 on z12
  • 25k on z13
  • 100k on z14
  • 400k on z15

making a total of roughly 500k tiles. Now the average size of tiles is a tricky thing, it varies between zoom levels. But if your scenario includes tiles on higher zoom levels then the average size is surprisingly small - something like 2 kB. Tiles can easily reach 50kB and more but on high zooms, most of Colorado will likely be almost empty and the empty ones dominate the few large inner-city tiles. (And, tile count wise, the higher zoom levels dominate the lower ones.)

So the answer to your question is that for a state the size of Colorado and up to z15, you're probably looking at 2 kB * 500k tiles = 1 GB of tile storage.

permanent link

answered 12 Jun '12, 08:41

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Thank you, this answers my question.

(13 Jun '12, 01:32) LiveCarMap

You could also find the size of a single tile and then multiply that number for the area of the state that you are trying to cover. You just have to download the vector data and determine how far across a single tile is. Then find the x and y axis for the state and then finally multiply. It will be a rough estimate but still give you a baseline.

Cheers, Nicholas

permanent link

answered 07 Jun '12, 22:00

ingalls's gravatar image

ingalls
31113
accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×341
×287
×33
×30

question asked: 15 May '12, 19:26

question was seen: 9,044 times

last updated: 13 Jun '12, 01:32

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum