On Wed, Jul 09, 2008 at 11:00:55AM +0100, Robert (Jamie) Munro wrote: > |> Hmm, I think there is a tiny bug in the serve_tiles.py, it checks for > |> the offset being larger than 1 for special case tiles. Both sea and > |> transparent tiles would therefore try and load a tile with an invalid > |> offset. Shouldn't it be greater than 3? > | > | True, that is a bug and it's fixed now. Thanks for spotting :-). > > Checking greater than 3 still seems a bit un-expandable. Why not > allocate the first 4096 offset values to mean special tiles? Then you > could put special tiles named 0.png to 4095.png somewhere and whenever > those offsets are encountered, redirect to them.
I'd rather not use positive integers as the max amount is the space you
waste.
As an loff_t needs to be signed why not use a negative e.g. MSB set for
special values? There cant be data before the start of the file.
Flo
--
Florian Lohoff [EMAIL PROTECTED] +49-171-2280134
Those who would give up a little freedom to get a little
security shall soon have neither - Benjamin Franklin
signature.asc
Description: Digital signature
_______________________________________________ Tilesathome mailing list [email protected] http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/tilesathome
