[Tilesathome] [PATCH] To delete a tile
Martijn van Oosterhout
kleptog at gmail.com
Fri Jun 8 11:56:28 BST 2007
No responses to this? Good/bad idea?
If you're wondering why, it's so that we can solve this from the client side:
http://wiki.openstreetmap.org/index.php/Tiles%40home/Dev/Coastline#part_4:_merging_blank_tiles
But has other uses also (removing spam while waiting for a rerender,
reduing disk usage), I'm sure we can think of more...
Have a nice day,
On 6/6/07, Martijn van Oosterhout <kleptog at gmail.com> wrote:
> 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/
>
>
--
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/
More information about the Tilesathome
mailing list