[OSM-dev] Converting slippy map tilenames back to lat/lon

GeoJ geoj at quantentunnel.de
Mon Jul 7 09:22:30 BST 2008


Hi OSM developers,

for an OSM related program I am writing I need to reverse the function 
getTileNumber() (Java) as presented on [1] - that isn't that easy as I 
don't understand to differences to the clean Mercator algorithm. Can 
anybody please help me how to compute in Java lat & lon from xtile, 
ytile & zoom?

Thanks in advance,
GeoJ

[1] http://wiki.openstreetmap.org/index.php/Slippy_map_tilenames#Projection





More information about the dev mailing list