[Openstreetmap-dev] Cache the whole world.

Immanuel Scholz immanuel.scholz at gmx.de
Thu Feb 16 12:22:20 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!


> It's not enough to just propose it. Whatever solution you come up with
> must be usable with javascript, Java and Ruby code

If any part of my suggestion gives anybody trouble in any of the three
languages (maybe because of missing language constructs or libraries or
language knowledge), please say which part. I can try to explain or
remodel that part.


> and in order to get started then solutions for all three would have to be
> ready at the same time.

Why that? I proposed an algorithm just to get URL's for some lat/lon
stuff. If we currently have such an algo but broken, why we must fix all
algorithms at once?


> It would be better to keep WMS-friendly URLs and synchronise the
> generation of those across platforms. It's also nice as it allows other
> people to use OSM's imagery without running their own server.

Uhm, I don't remember suggesting to change anything on the URL's. Maybe I
wasn't clear about the "tile name" stuff, but this was just for me an
intern helper to address the different tiles. If there is already an other
addressing scheme, use this.

The output of the algorithm are the looked up lat/lon boundary values
which can be passed to any WMS server.


Of course, if you like you can change the URL to pass the encoded "tile
name" instead, but this is like you said: "unconventional".


> MS has a patent on encoding float lat-lon in integers in URLs.  Be mindful
> of that.

I ignore trivial software patents.

There is nothing you can do against such things and I bet OSM software has
already about 20 to 50 patent violations (as every software).


Ciao, Imi.






More information about the dev mailing list