[OSM-dev] Generate tiles with generate_tiles.py

Richard Weait richard at weait.com
Wed May 22 22:01:33 UTC 2013


On Wed, May 22, 2013 at 5:52 PM, Vince Berubey <screams_3 at hotmail.com>wrote:

> Hi,
> I would be grateful if someone could help me with this.
>
> I use generate_tyles.py to create tiles. But, in the script you need to
> write the bounding box values of the region from where you want to generate
> the tiles. Since, I was using an example I found online, they were
> providing these values. But, for example, if I want to get the bounding box
> values of Paris, how do I get them?
>
>     bbox = (-180.0,-90.0, 180.0,90.0) <---
>     render_tiles(bbox, mapfile, tile_dir, 0, 5, "Paris")
>

for kicks, try this for a start

bbox = (2.2192,48.7686, 2.4747,48.9491)

You could use the export tab on openstreetmap.org (and the manually select
a different area, option) to find another bounding box that you like.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20130522/4dd85e27/attachment.html>


More information about the dev mailing list