[OSM-dev] running a local server

Andy Allan gravitystorm at gmail.com
Fri Nov 2 11:21:50 GMT 2007


On 11/2/07, 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

If you're running a low-bandwidth, limited area map, it's 100 times
easier than this. Pre-render your tiles (or just copy them from the
main tileserver) and just put them in the correct hierarchy on your
webserver, e.g.

http://example.com/12/2173/1398.png

Openlayers will then make straightforward HTTP requests for the tiles,
and your webserver will simply reply with the file from the
filesystem. This is how it works for the cycle map - all the images
are prerendered on a machine at home, and then uploaded to a dumb
webhost that is nothing more than apache serving .png files.

Cheers,
Andy




More information about the dev mailing list