[Tilesathome] Proposal: Keeping tileset as one file
Jiri Klement
jiri.klement at gmail.com
Thu Jun 5 18:37:40 BST 2008
Hi,
What do you think about keeping the whole tileset (for z12) in one file?
The file will use this format:
offset to tile 1
offset to tile 2
..
offset to tile 1300
tile 1
tile 2
...
tile 1300
The offset will have following values:
0 - tile is blank land
1 - tile is sea
any other - offset to place where tile data are saved
Uploading will be much easier than now, it will just save file
uploaded by client to correct place, no zip extraction will be
necessary.
Getting tile will get a bit more complicated. It will have to read
file header to get tile offset and size and then read tile from file.
Performance - uploading will get definitely faster. Downloading should
get faster too. Getting tile offset is extra work, but file header
will often get cached and having much smaller number of files should
make things faster.
Before anyone asks, I don't have time to implement this now. But if
this turn out to be a good idea I might have time for doing it in
summer.
--
Jiri Klement
More information about the Tilesathome
mailing list