[Tilecache] Tile naming
Roeland Douma
unix at rullzer.com
Wed Aug 13 11:37:20 EDT 2008
However when converting lat to -lat the problem seems to be solved.
I think it is a small bug in tilecache since the request goes like this
tilecache.cgi/1.0.0/osm/10/525/336.png
zoom: 10
lat: 52.482780222078212,
lon: 4.5703125
While the filename (with Disk.py) is
10/000/000/525/000/000/687.png
which means (if i'm correct):
zoom: 10
lat: -52.482780222078212,
lon: 4.5703125
So I have a work around. But I would like to know If I make a calculation
mistake or tilecache.
rullzer
On Wednesday 13 August 2008 00:46:15 Roeland Douma wrote:
> Hi,
>
> I'm trying to write a simple python script that parses the diffs of open
> streetmap and deletes the tiles that contain data that is no longer up to
> date. In order to do this I calculate the x and y (
> http://wiki.openstreetmap.org/index.php/Slippy_map_tilenames ) and for all
> zoom levels.
>
> Now the values that I get out of that are the values I need because if I
> enter them on
>
> http://tile.openstreetmap.org/10/525/336.png
> and
> http://tile.famdouma.nl/tilecache.cgi/1.0.0/osm/10/525/336.png
>
> it is the same time (the second one has a bbox).
>
> However when I check my tilecache dir the file i want is:
> 10/000/000/525/000/000/687.png
>
> I use Disk as caching mechanism. And when I look into the source the format
> is: zz/xxx/xxx/xxx/yyy/yyy/yyy.png
> And the caching does not manipulate it.
>
> The zoom and x see to be the same but I can't find how the y is calculated.
>
> Any ideas?
>
> Thanks in advance,
> rullzer
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
More information about the Tilecache
mailing list