On Tue, Sep 16, 2008 at 01:22:39PM -0400, Matthias Julius wrote:
> 1. <header> <offset to index> <meta data> <index> <tile data>
> 2. <header> <index> <meta data> <tile data>
> 3. <header> <index> <tile data> <meta data>
> 
> I prefer the last one.  It remains compatible with the current format
> (I know, I'm repeating myself.), writing of meta data is simple (just
> write at the end of the file) and reading is simple, too (just read from
> last offset to EOF).

3 looks fine to me too.

> In which form should we store meta data?  Someone suggested XML, but I
> would like to avoid that.  The simplest form is probably the internet
> header format (RFC 822) limited to single lines.

1) either fixed defined length per field (easiest to parse, most bloaty), e.g. 
100 bytes renderer, 8 bytes x,y etc...
2) 1 line per item RFC822 sounds ok...

Again, let's be very careful about what we want here. Everything multiplies 
with 16mio bytes times the number of layers we have.

_______________________________________________
Tilesathome mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/tilesathome

Reply via email to