[OSM-talk] z12 bounding box

2008-01-17 Thread Jeremy Adams
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 [EMAIL PROTECTED] client does it when it 
requests data from the API, but I'm not clear on how it works.

Thanks,

Jeremy___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] z12 bounding box

2008-01-17 Thread Dirk-Lüder Kreie
-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 [EMAIL PROTECTED] client does it when it 
 requests data from the API, but I'm not clear on how it works.

Actually the [EMAIL PROTECTED] 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-

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] z12 bounding box

2008-01-17 Thread Chris Jones
Jeremy Adams wrote:
 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?

http://wiki.openstreetmap.org/index.php/Slippy_map_tilenames should tell
you all you need to know.

--
Chris Jones, SUCS Admin
http://sucs.org

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] z12 bounding box

2008-01-17 Thread Dirk-Lüder Kreie
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

[EMAIL PROTECTED] schrieb:
 for perl there are the functions in tahproject.pm[1]
 
 Project and ProjectL
 
 
 [1]
 http://svn.openstreetmap.org/applications/rendering/tilesAtHome/tahproject.pm

 This worked great for what I wanted to do.
 
 Thanks to everyone for the great info.


To clarify: Project and ProjectL together return the correct bbox for
the tile, *not* the bigger bbox used by [EMAIL PROTECTED]

- --

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

iD8DBQFHj/zlFUbODdpRVDwRAqZ2AKCY17x15cPJDecpVLt6vXurJNBlwgCdEHvD
pMqOU09I0sZMOhC9bah9eQI=
=DCku
-END PGP SIGNATURE-

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk