[OSM-talk] z12 bounding box

Dirk-Lüder Kreie osm-list at deelkar.net
Thu Jan 17 21:24:55 GMT 2008


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

Jeremy Adams schrieb:
> Is there an easy way to figure out what the equivalent bounding box of a particular tile would be? 
> 
> For instance, I want to use osmosis to cut out a bounding box that contains all the info in a particular z12 tile (or any zoom).  How would I figure out what the lon and lat values would be for the tile?
> 
> I'm guessing it's possible since the t at h client does it when it requests data from the API, but I'm not clear on how it works.

Actually the tiles at home client uses a bigger bbox than the tile itself,
but there is a reasonably simple formula to get from x,y,zoom to lat/lon
and vice versa.

for perl there are the functions in tahproject.pm[1]

Project and ProjectL


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


- --

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

iD8DBQFHj8enFUbODdpRVDwRAuB6AJ4jByb2zjuHYGppEV2CqWRPlbEEJwCfVRVV
lHgNesYr8F239IBL+97TQYg=
=id+P
-----END PGP SIGNATURE-----




More information about the talk mailing list