Paul’s Blog

A blog without a good name

Data to Tiles

The most common use for OpenStreetMap data is hosting your own map. If you need up to the minute data, the entire world, and high zooms, this requires a dedicated server running renderd+mod_tile or other specialized software that handles requests. On the other hand, if less frequently updated data and low zooms is all that’s needed, it can make more sense to pre-render tiles and serve them off of an existing server as files from disk.

Over the next few posts, I’m going to be walking through step-by-step on how to generate these files, starting with downloading OpenStreetMap data, and ending up with rendered tiles.

  1. It starts with the planet - downloading OSM the right way
  2. Add some style - building a stylesheet
  3. Loading the data - using osm2pgsql
  4. Installing MapProxy - lots of options, all similar
  5. Configuring MapProxy
  6. Seeding tiles
  7. Optimizing PNGs