[Tilesathome] t at h server next generation

Florian Lohoff flo at rfc822.org
Wed Jul 9 11:27:24 BST 2008


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                  flo at rfc822.org             +49-171-2280134
	Those who would give up a little freedom to get a little 
          security shall soon have neither - Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20080709/b592625d/attachment.pgp>


More information about the Tilesathome mailing list