TileCache Tutorial

One of the nicest little pieces of software we’ve come across in the last few months has been MetaCarta’s TileCache, which performs a very specific job – caching WMS requests for use in clients that understand tiles – and does it very well. We are making good use of it on our demo site, to give an even better user experience in terms of the speed the map shows up.

Chris and Schuyler gave lots of advice on how to use it in conjunction with OpenLayers, so we thought it’d be worthwhile to write up a new tutorial for GeoServer users looking to make use of it. And there are a few tips and tricks that will likely be useful to others, especially some of the nice things you can do in OpenLayers that make it work better with TileCache, like setting multiple host names to cheat the browsers connection limit and setting OL to try to reload when it gets pink tiles.

We hope to eventually be able to ship a nice integrated GeoServer plug-in that will run a TileCache with a nice GUI and enable easy integration with nice distributed java caches. The ideal would be to share code with TileCache and run in jython, but if that’s not possible we will likely do a hand port and leverage JAI. A big kudos to the MetaCarta programmers, it’s a very nice piece of code.


  1. Posted February 26, 2007 at 5:18 pm | Permalink

    Thank you for this tutorial. You are making gis tutorial more powerfull.

  2. Mike Pumphrey
    Posted April 23, 2008 at 2:32 pm | Permalink

    I’d just like to add that lots of development is being done on GeoWebCache, a java implementation of WMS tile caching, which works as a plugin to GeoServer. You can check out GeoWebCache at http://geowebcache.org , and we’ll be writing more about it here on this blog as time goes on.

Download GeoServer