Eric.Lemoine at camptocamp.com
Tue Mar 13 12:11:12 EDT 2007
On 3/12/07, Brent Pedersen <bpederse at gmail.com> wrote:
> hi, first thanks to the developers for tilecache--and the help on irc.
> i was having some problems with tiles not showing up. at first i
> thought it was because of the metaTiling going out of the designated
> extents. that was not the case.
> i was able to fix this by digging into Layer.py and setting
> exact=False in Layer.getCell().
> however, i think the real problem is with threshold.
> it is set to .001 which seems fine for lat/lon, but for a scale in
> meters, .001 is a millimeter (i think)...
> anyhoo, a quick fix is to set threshold in __init__ as something like:
> self.threshold = math.abs(bbox/10e4)
> (bbox - bbox)/10e4
> havent done enough testing to be sure this is the case, but it seems
> to have fixed the problems i was seeing.... and it makes sense.
I also hit that bug. Your patch partly fixes it as I still get pink
tiles at certain zoom levels (not the entire view is pink, a few
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
More information about the Tilecache