[Tilecache] Patch for seeding after failure...

Aaron Racicot aaronr at z-pulley.com
Wed Aug 8 18:19:13 EDT 2007


I have needed to restart tilecache after getting a failure when already far
along in the caching process.  It is a pain to have to restart a whole zoom
level if there are hundreds of thousands of tiles in that level and you were
almost done...

So, I added another optional parameter after the bbox in the call to seed in
Client.py to allow for a restart_index to be passed in.  The index is used
to redo that zoom level but skip ahead to the correct tile and work forward.
I have updated the README and debian man page files as well.  Here is the
new usage in the README update:

Usage
-----

     tilecache_seed.py <url> <layer> [<zoom start> <zoom stop> [<bbox>
[<restart_index>]]]


I have tested on a limited set of use cases, but I would be interested if
others find this useful and test it out.  Also, this parameter should only
be used on a single zoom level as a recovery mechanism since the
restart_index really only makes sense to a single zoom level.

This patch is against the 1.8.1 tagged svn since the 1.9 code seems to have
some problems with seeding and I can not test it there.  Should be easy to
migrate.

A

+----------------------------------------+
 Aaron Racicot - GIS Programmer   
 360.221.2441 - aaronr at z-pulley.com          
+----------------------------------------+
 z - p u l l e y                        
 pobox 1614
 langley wa 98260
 www.reprojected.com                       
+----------------------------------------+

-------------- next part --------------
A non-text attachment was scrubbed...
Name: restart_index.patch
Type: application/octet-stream
Size: 6555 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/tilecache/attachments/20070808/f6b09af0/restart_index.obj


More information about the Tilecache mailing list