Hi,

Philipp Borgers wrote:
I'm trying to write a nginx module which does more or less the same like
mod_tile. I reviewed a lot of the code but now I have a little problem
with the computation of paths to meta tiles. Could someone please
explain me how mod_tile creates file paths from a request and how the
offset is computed? My own code looks exactly the same but returns
x=0,z=0 for every input. I'm highly confused :)

The result of this computation is a series of 5 integers stored in the hash[] array, plus an offset. The resulting x and y values are of no concern. The reason you are confused is proably because you have your code print out

        printf("%d,%u,%u\n",cmd->z,x,y);

at the end, which is not what this code is supposed to compute.

Bye
Frederik

--
Frederik Ramm  ##  eMail [email protected]  ##  N49°00'09" E008°23'33"

_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev

Reply via email to