[Tilesathome] [PATCH] To delete a tile

Martijn van Oosterhout kleptog at gmail.com
Wed Jun 6 10:29:09 BST 2007


Hi,

As part of the plan to reduce the number of entries needed in the
blank tiles database, I'd like to propose the attached patch that,
when you upload a tile which is zero bytes long, deletes the real tile
as well as the entry from the tiles_blank database.

Two reasons:
1. There are places in the world were in the past blank land has been
uploaded where there should be blank sea. There is a fall back
machanism, so it'd be better to simply delete them than overwrite
them.

2. When a client renders a blank area it ends up uploading blank tiles
for zoom-12 to 17 which is overkill. With this patch we open the way
to the client uploading only say zoom-12 and zoom-15 and deleting all
the other tiles. This saves 1300 entries in the blank tiles db per
zoom-12 tile, while having the fallback system only have to search a
maximum of three levels. Also, files coming from the clients will
still have exactly 1365 files, a complete set. The same principle can
also optimise areas of the world where there is only sea.

Please consider applying (after appropriate testing ofcourse),
-- 
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deletetile.patch
Type: text/x-diff
Size: 1342 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20070606/b69d0077/attachment.patch>


More information about the Tilesathome mailing list