[Tilesathome] Tileset files
Martijn van Oosterhout
kleptog at gmail.com
Tue Sep 16 21:57:48 BST 2008
On Tue, Sep 16, 2008 at 7:22 PM, Matthias Julius <lists at julius-net.net> 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>
The problem with the last is that you need to know how large the index
is to find the metadata. You need to add at least the "number of
levels" to one of the unused bytes in the current header, that way you
know the size of the index and the rest of the metadata comes easy.
I'd actually propose to use the three unused bytes currently as:
1. Number of levels in tileset, currently 6
2. Order of tiles at top level, so zero if the top level in this
tileset has only 1 tile.
Basically because I'd like to be able to get mapnik to use these
tileset also, except instead of producing multiple levels, it produces
one level, but with lots of tiles. So an 8x8 tileset would have a 1 in
the first field and a 3 in the second field.
Have a nice day,
--
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/
More information about the Tilesathome
mailing list