[OSM-dev] Volunteers needed now. OSM for Myanmar disaster relief.

Jon Burgess jburgess777 at googlemail.com
Tue Jun 10 00:09:47 BST 2008


On Tue, 2008-06-10 at 08:30 +1000, Brett Henderson wrote:
> Christopher Schmidt wrote:
> > On Mon, Jun 09, 2008 at 01:25:20PM -0700, Mikel Maron wrote:
> >   
> >> Are you familiar with setting up Mapnik and TileCache, and other components of the OSM stack?
> >>     
> >
> > As a comment: with the recent changes in Mapnik to mmap shapefiles,
> > TileCache + OSM + Mapnik is probably a very poor path to take. The world
> > boundaries shapefiles are simply too large to reasonably expect to fit
> > into memory on most machines in a TileCache-like setup.
> >
> > At this point, I think mod_tile is the way to go for OSM tile rendering
> > (much as it pains me to push people away from my own project). In Mapnik
> > 0.4, it worked fine, but these new improvements, simply put, make on the
> > fly rendering of more than a handful of tiles (which TileCache doesn't
> > seek to prevent) impossible on all but the most powerful systems. 
> >
> > Regards,
> >   
> Hmm, I was worried this might be the response :-)
> 
> Sounds like I need to look into mod_tile then.  I initially avoided it 
> because it sounded much more difficult to install and configure.
> 
> I am documenting the installation steps as I go on this wiki page.  If 
> anybody is willing to put some cookbook steps on this page to install 
> and configure mod_tile it would be incredibly helpful.  Note that I'm 
> not expecting this server to be generating tiles for thousands of users, 
> my best guess is dozens at this point.  For this reason I have already 
> lowered some of the postgresql settings from those provided on the OSM 
> mapnik wiki page.
> http://wiki.openstreetmap.org/index.php/OnDemandTileServer

It should not be too hard to get mod_tile to work. I developed it
originally on Fedora 8. The packages that you are likely to need
installed are as follows:

- Mapnik (obviously)
- Apache packages: httpd, httpd-devel
- APR packages: apr, apr-devel, apr-util, apr-util-devel
- DejaVu fonts from http://dejavu.sourceforge.net

You'll need to fix-up a couple of paths in the source code. The 64 bit
library path below will need changing. The font path should be pointed
to the location you unpack the DejaVu fonts:

gen_tile.cpp:    datasource_cache::instance()->register_datasources("/usr/local/lib64/mapnik/input");
gen_tile.cpp:    load_fonts("/usr/local/lib64/mapnik/fonts", 0);



> A test Myanmar dataset is available here (currently only 7MB):
> http://www.bretth.com/myanmar/myanmar.osm.gz

I imagine you may run into problems if you need some foreign font glyphs
not provided by DejaVu. You might need to substitute some alternate
font.

	Jon






More information about the dev mailing list