[OSM-dev] .osm tile naming convention
Nic Roets
nroets at gmail.com
Fri Jun 4 12:23:41 BST 2010
On Fri, Jun 4, 2010 at 12:30 PM, Richard Fairhurst <richard at systemed.net> wrote:
> I'm intending to give Halcyon (the rendering engine behind Potlatch 2,
> but also a standalone applet) the ability to render direct from .osm files.
>
> You will, of course, be able to punt an arbitrary .osm file at it and
> let it render it.
>
> But I'd also like it to cope with .osm tiles. In other words, you could
> have a bunch of .osm files, each covering a given bbox. As the user
> browsed around the map, Halcyon would load tiles as appropriate. It
> saves setting up a database for simple applications.
>
> Does anyone here have any thoughts on a naming convention for these
> files? xmin_ymin_xmax_ymax.osm is the first thought that springs to
> mind, but maybe someone's done all this before...
Gosmore Earth uses the same concept, but I can't imagine Potlatch
using continent sized bboxes, so I doubt you will be able to use the
same scheme: The encoding is xmin_ymin_xmax_ymax in the Mercator
projection. x and y both integers in the range 0 to 1024. So a 1x1
cell is roughly 30km x 30km.
http://dev.openstreetmap.de/gosmore/
When the need arise for splitting the planet into the bboxes, you can
use this utility (checked into svn under gosmore):
https://lists.openstreetmap.de/pipermail/devserver/2010-March/000517.html
> cheers
> Richard
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
>
More information about the dev
mailing list