[Tilecache] Customize TileCache get image routine
Linda Rawson
linda.rawson at gmail.com
Mon Oct 15 11:49:19 EDT 2007
Basically I need to do the following:
1. Check if the image already exists in the cache.
2. If not then check for the image with the provider by utilizing a url
that returns a value.
3. Check the value and If still no image then try another WMS service
provider.
4. If still no image then return a noimage tile.
Can you direct me to the best python resource for these things?
Thanks so much!
Linda Rawson
On 10/15/07, Christopher Schmidt <crschmidt at metacarta.com> wrote:
>
> On Sun, Oct 14, 2007 at 09:31:02PM -0700, Linda_Rawson wrote:
> >
> > Digital Globe has this inherent problem that when they don't have an
> image it
> > will return the same image at a lower resolution. It really should
> return a
> > noimage tile. What I would like to do is customize the python scripts
> so
> > that if we did not have a tile cached it would first query the service
> to
> > find out if there is an image and if there is no image then it would
> return
> > a notile image. Which python script would I change to do this?
>
> You're going to want to create a Layer subclass specifically for Digital
> Globe, in the Layer.py file.
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20071015/0d436143/attachment.html
More information about the Tilecache
mailing list