I am using TileCache from MetaCarta to create tiles for a WMS service. It creates a tile with an URL like
http://example.com/tiles/Admin/06/000/000/357/000/000/158.png.
I am trying to understand how to start from Map Coordinates, and get the appropriate tile.
I am looking for some documentation which explains the Folder structure/hierarchy of the server cache directory
Best Answer
answer to my comment(this code is for my tms scheme and you can adapt it to your need):
tx and ty will give you to tms result as lanlot. if you want to know equivalent to google map, you can calculate the Y file name
(Math.pow(2, zoom) - 1) - ty
i hope it helps you...