[OSM-dev] running a local server

Dave Stubbs osm.list at randomjunk.co.uk
Fri Nov 2 11:39:45 GMT 2007


On 02/11/2007, graham <graham at theseamans.net> wrote:
> Keith Sharp wrote:
> > On Thu, 2007-11-01 at 20:02 +0000, graham wrote:
> >> Can anyone point me to the
> >> best wiki page/mail thread/svn directory for some guidance?
> >
> > Try:
> >
> >       http://www.passback.org.uk/maps/fedora.shtml
> >
>
> My server is on debian, so I won't use yum directly. But the general
> idea looks like :
>
> - convert planet to postgresql using osm2pgsql
> - use mapnik to render data from the db on the fly
> - use tilecache to reduce the load on mapnik
>
> So what is the actual server software that interprets the api calls to
> pass to mapnik? Or is that considered trivial/a one-off to write for
> each new application?

If you're only requiring a fairly small area it may prove easier to
just pre-render the tiles you require.
For that you just:
  - convert planet to postgresql using osm2pgsql
  - use mapnik to render the tiles for the bbox you want
  - upload the tile-set to your webhost to display with openlayers
You can set up a cron job to do this automatically every week if you
want to keep up to date with the planet.

The mapnik dir on svn has the script generate_tiles.py which you can
use to do this:
http://trac.openstreetmap.org/browser/applications/rendering/mapnik




More information about the dev mailing list