[Tilecache] threshold

Brent Pedersen bpederse at gmail.com
Mon Mar 12 16:00:20 EDT 2007


tim,
those are the same symptoms i was seeing. so, yes, i think that is the case.
[ if not, you canlikely fix by setting exact=False in Layers.getCell() ]
-brent

On 3/12/07, Tim Langlois <tlanglois at archetypecorp.com> wrote:
> Could this be what is causing some of the Pink tiles in openlayers when
> the tile is very close to a boundry (bounding box) of the map.  I've
> noticed this when zooming in/out on a map.  The pink tiles always appear
> when the zoom level causes a bordering tile to render very close to the
> edge of the map data.  The tile is pink instead of the default
> background (blue in my case).
>
> On Mon, 2007-03-12 at 10:16 -0800, Brent Pedersen 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[2]/10e4)
> > or
> > (bbox[2] - bbox[0])/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.
> >
> > is there a trac for tilecache?
> > -brent
> > _______________________________________________
> > Tilecache mailing list
> > Tilecache at openlayers.org
> > http://openlayers.org/mailman/listinfo/tilecache
> >
>
> The information transmitted is the property of Archetype, Inc. and is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Statements and opinions expressed in this e-mail may not represent those of the company.  Any review, retransmission, dissemination and other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender immediately and delete the material from any computer. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, received late or incomplete, or could contain viruses. The sender therefore does not accept liability for any error or omission in the contents of this message, which arises as a result of e-mail transmission.
>
>



More information about the Tilecache mailing list