[OSM-dev] [OSM-Server]Setting Up Tile server
Andy Allan
gravitystorm at gmail.com
Tue Jun 22 11:01:04 BST 2010
On Sat, Jun 19, 2010 at 8:34 PM, PARVEEN ARORA
<parveenaroraosm at gmail.com> wrote:
> Hello Everyone,
>
> I am setting up a tile server for Punjab.
> I have successfully done with the first step of rendering image with the
> following tutorial
> http://weait.com/content/build-your-own-openstreetmap-server
>
> and with the help of openstreetmap community.
> So thanks to all for helping..
>
> Now Please suggest me what should be the further steps to set
> up a complete tile server for our state..
That guide takes you up to the point of having a working
mapnik+postgres setup. The next step is to generate map tiles as a
series of 256x256 png files.
There are two main choices
1) Pre-render all the tiles you want. If you have a small area, and a
small number of zoom levels, you can do this by adapting the
generate_tiles.py script to your needs. You can then host all of the
tiles on any kind of webserver, since they are just organised in the
right directory structure to allow clients (e.g. openlayers javascript
library) to find them.
2) Generate tiles on-the-fly. This is needed for larger areas or large
numbers of zoom levels. This is because the theorectical number of
tiles required can become huge, whereas in practise very few actually
get viewed. On-the-fly systems wait for a map tile to be requested
before rendering it. One example of this is mod_tile, which runs the
openstreetmap tileserver. More information is at
http://wiki.openstreetmap.org/wiki/Mod_tile
Cheers,
Andy
More information about the dev
mailing list