[Openstreetmap-dev] Cache the whole world.
Tom Carden
tom at tom-carden.co.uk
Thu Feb 16 12:36:17 GMT 2006
> Hi,
>
>> <snipped 1000 word essay on the non-complex problem ;)>
>
> :-(
>
> Strip my tons of redundant (and unprofessional) explanation and you get
> two algorithms of about 10 lines each which also are very similar. I bet
> you find these algo's in similar shape in every second basic programming
> book under "divide and conquer" algorithm.
>
> The latitude transformation into and from a linear scale is a one-liner!
>
OK, I misread what you were proposing.
You were proposing a standardised "tile name" and two transforming functions:
1. f(lat,lon,zoom) -> tile name
2. f(tile name) -> WMS URL
And you think that function 2 could be implemented using a ~64k lookup
table, such that the transformation is language independent?
Now, if you can provide implementations of those functions and the look-up
table in Java, Ruby and Javascript, I think it could work.
Best,
Tom.
More information about the dev
mailing list