[Tilecache] TileCache to TMS URL format

Tyler Durden tylersticky at gmail.com
Mon Jan 11 08:08:03 EST 2010


Hi,
I'm using a layer in OpenLayers that makes requests with the TileCache
format. And I want to redirect(in my webserver) to a TMS server as
fallback when the file(tile) does not exists in the cache.

Example:
http://myserver/cache/base/00/000/000/037/000/000/049.png
to
http://myserver/1.0.0/base/0/37/49.png

There's a way(algorithm) for converting this URL's in Python or something else?

Thanks,
Tyler



More information about the Tilecache mailing list