[OSM-dev] tilenumbers

Dirk-Lüder Kreie osm-list at deelkar.net
Mon Oct 15 22:38:58 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jonas Svensson schrieb:
> How do I calculate tilenumbers when retrieving from tileserver? Ie 
> how do I transform from lat,lon and zoomlevel to 71212 and 39189 in
> http://dev.openstreetmap.org/~ojw/Tiles/tile.php/17/71212/39189.png?
>  I assume that calculation is available all over in the codebase 
> but so far I have been unable to locate it, so if someone could 
> give some help on where to read, please?
>
There is a perl module in the tilesAtHome directory in SVN that has all
the necessary code

http://svn.openstreetmap.org/applications/rendering/tilesAtHome/tahproject.pm

HTH

- --

Dirk-Lüder "Deelkar" Kreie
Bremen - 53.0952°N 8.8652°E

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHE93yFUbODdpRVDwRAnBwAJ46oDuIaqjpJEVOJccKh8HQb2of5ACfZlBk
WYXp7MYPb928ZszYLuzuRrw=
=7WLn
-----END PGP SIGNATURE-----




More information about the dev mailing list