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

Hi, I am having a customized OSM setup with our own database. Currently I'm getting the data as per my requirement edited by iD editor. Now I want this data to be rendered as map. Also I want to cache the generated tiles of this data. So some requirement:

  1. I want to know standard practices for generating map using above data. Like taking .osm data offline, do some processing, make a shapefile, publish it in GeoServer or is there any other way also?

  2. Since tile cache is a suitable option for faster data/tile rendering, what are the practices to generate tiles and how to update these tiles as data will be modified/added/updated regularly through iD editor.

Thanks in advance.

asked 09 Jan '14, 11:33

GoldenCompass's gravatar image

accept rate: 0%

edited 09 Jan '14, 14:59

iii's gravatar image


(just in case it isn't clear) from previous questions I believe that the questioner has their own copy of the rails port deployed.

(09 Jan '14, 11:39) SomeoneElse ♦

@SomeoneElse Yes, I am having a copy of OSM setup (as per my requirement) up and running and getting data from concerned users.

(09 Jan '14, 11:44) GoldenCompass

IMHO you need to decide which way you want to use to create your tiles:

  1. Rendering on demand
    So your TMS get's the client tile requests and renders/splits the desired area on the fly.
  2. Preprocessing all tiles
    All tiles are rendered and then only the affected areas (by your edits) get updated and rerendered. This takes a lot of space (if you need to provide it as global service), but it scales better if you have a larger amount of clients.

Both ways can be combined with mapcaches, but of course this limits the tile update frequency as the way to the client get's longer and the caches need time to propagate changes and to get flushed.

In every case you need to create a PostGIS DB that suits the rendering stack requirements (AFAIK this is a different one from the central rails port). Then you setup the Mapnik renderer (or a different one) and decide if you call them after edits or if you get a client request. A good tutorial is also you might read

permanent link

answered 09 Jan '14, 15:10

iii's gravatar image

accept rate: 10%

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 09 Jan '14, 11:33

question was seen: 6,588 times

last updated: 09 Jan '14, 15:10

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