[Tilecache] seed problem with significant digits

Christopher Schmidt crschmidt at metacarta.com
Thu Jul 12 10:15:53 EDT 2007


On Thu, Jul 12, 2007 at 12:29:44PM +0000, Benoit PESTY wrote:
> Hello,
> 
> I'm having the same kind of problem that Bart van den Eijnden.
> 
> I have a map with the following extend : 47860,1620431,1197822,2677441
> 
> I'm trying to seed it with a certain number of levels (i'm doing tests to 
> see how much disk space I need) and at level 7 i'm having the error : "can't 
> find resolution index for 35.094055."
> 
> If I calculate the resolutions I have :
> # 0 - 4492,0390625
> # 1 - 2246,01953125
> # 2 - 1123,009765625
> # 3 - 561,5048828125
> # 4 - 280,75244140625
> # 5 - 140,376220703125
> # 6 - 70,1881103515625
> # 7 - 35,09405517578125
> # 8 - 17,547027587890625
> 
> At level 7, abs(35,094055 - 35,09405517578125) = 0,00000017578125, it's more 
> than the 0,0000001 allowed.
> 
> I've changed the getLevel method to remove a 0 and allow a 0,000001 
> difference, but I'm not sure it's very clean.

This is definitely a bug in TileCache. I need to fix it. I haven't yet.
I will try to get to it next week. (Calling all Tims, Calling all Tims,
give me a patch plzkthx.) 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list