[Tilesathome] Tileset files

spaetz osm at sspaeth.de
Tue Sep 16 14:49:21 BST 2008


On Tue, Sep 16, 2008 at 08:47:49AM -0400, Matthias Julius wrote:
> > Is this really worth the bloat? We know who uploaded a tileset and we
> > know when it was rendererd.
> 
> How do you know when it was rendered?  Does the server look at the
> file dates of the PNG files?

The client sets the png mtime to the download date of the .osm file. The tilesetfile mtime is currently not set to a specific time (but usually it's only within 1-2h later) but it could be set to the api download time or the render time or whatever.

> > I am not opposing it. Someone just needs to adapt all the tools that
> > work with it (mod_tah.c, server, client) to allow for that and allow
> > for a gradual switchover too. Can it be done? yes. Does it require
> > effort and will destabilize things even more for a time? likely.
> 
> I was proposing to put that data at the end of the file.  So, the last
> offset in the index would point to the start of the meta data instead
> of the end of the file.  This way current tools will just ignore it
> and it is easy to find for tools that are aware of it.  They just need
> to read from the last offset to EOF.

mmh, besides that it feels a bit hackish and ugly to distribute meta data before AND after the tile data, this would be feasable. If not too much effort, I'd rather bump the file version number though and keep all metadata in one place.

Feel free to design v2 of the tileset file format. I'll try to adapt the server side then to use it.

spaetz




More information about the Tilesathome mailing list