[OSM-dev] running a local server

Jon Burgess jburgess777 at googlemail.com
Fri Nov 2 22:57:35 GMT 2007


On Fri, 2007-11-02 at 12:56 +0000, Artem Pavlenko wrote:
> On 11/2/07, Andy Allan <gravitystorm at gmail.com> wrote:
> >
> > > 4) What are you using to drive Mapnik to do the rendering?  Does this
> > > automagically create the correct directory hierarchy?
> >
> > A modified version of generate_tiles.py from
> > http://svn.openstreetmap.org/applications/rendering/mapnik/generate_tiles.py
> > - yep, it creates tiles in the right hierarchy.
> 
> 
> You can further improve performance by using 'color255' utility (JonB)
> from svn.openstreetmap.org instead of 'convert'.
> Cheers
> Artem

To expand on this a little further. The color255 utility is a more
efficient implementation of the convert program optimised for converting
a lots of tiles to an 8 bit colour palette.

The best thing to do is remove the convert call from generate_tiles.py
and then run color255 on all the tiles at once after they have been
rendered, e.g.

$ find tiles -type f | xargs color255

Calling the program to process multiple tiles at once reduces the cost
associated with loading and initialising the libraries.

	Jon






More information about the dev mailing list