[OSM-dev] Generate tiles with generate_tiles.py
Vince Berubey
screams_3 at hotmail.com
Thu May 23 13:06:14 UTC 2013
To get the bounding box values from the Export tab might not the best options for us. Is there any way to get this automatically. Like a query to a table to would return the values?
Best regards.
Date: Wed, 22 May 2013 18:01:33 -0400
Subject: Re: [OSM-dev] Generate tiles with generate_tiles.py
From: richard at weait.com
To: screams_3 at hotmail.com
CC: dev at openstreetmap.org
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/20130523/545ab1d1/attachment.html>
More information about the dev
mailing list