[Openstreetmap-dev] Cache the whole world.
Immanuel Scholz
immanuel.scholz at gmx.de
Thu Feb 16 11:44:44 GMT 2006
Hi again,
>> Yes. The problem is, for a given lat/long (the location of a recent
>> edit), what are the *exact* URLs of all the tiles that need refreshing?
...
> Last thing is, that you don't need to store any boundary values of smaller
> zoom levels, since they can be extracted from the higher zoom values. To
> get the from* values, attach "000000..." until you have the zoom level you
> stored. To get the to* values, attach "1111..." instead.
Sorry, I've just realized, that the Tom's question was for *all* tile
urls, that need update.
So if maximum zoom of OSM is, as example 17 and user edited "lat","lon":
- Get the tile name for tile f(lat,lon,17)
- then invalidate every tile with the tile name, tile name stripped by 2
chars, tile name stripped by 4 chars, by 6 chars a.s.o...
This is because, e.g. tile "01110101" is within tile "011101" within
"0111" within "01" within "" (the world).
Ciao, Imi.
More information about the dev
mailing list