[Tilecache] seed problem with significant digits

Benoit PESTY tchule at hotmail.com
Thu Jul 12 08:29:44 EDT 2007


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.

Regards,

Tchule.un esprit simple dans un corps simple.

_________________________________________________________________
http://liveearth.msn.com




More information about the Tilecache mailing list