[Tilecache] Basic Questions

Christopher Schmidt crschmidt at metacarta.com
Wed Sep 19 17:44:22 EDT 2007


On Wed, Sep 19, 2007 at 02:18:03PM -0700, Jeffrey Johnson wrote:
> The error output is
> 
> An error occurred: couldn't calculate tile index for layer
> b000000012345_wA01-1_d20070829_t174940_i00_s2432_ from ([0.0, 1024.0,
> 1024.0, 2048.0])
This error message is much clearer in 1.9. Can you upgrade? That would
let us know what resolutions there *are* there, so we can debug further.

> 
> So, it looks like somehow I need to specify the maxResolution and the
> bbox in my Layer definition when I am setting up the layers, but I
> think I have done this correctly. What am I missing here.

Whatever you're missing, I'm missing too.

> Also, is this going to be a serious performance bottleneck to dive
> through this directory and setup the layers everytime the script
> Example.py is called? Any alternatives?

Sure. Make the script parse the CGI args, and find the layer name, and
only create a layer for that filename, might be one. Not sure how that
will work -- parsing the query string with the cgi module might be a
one-time-only thing -- but if it is, you can always poke at 
os.environ['QUERY_STRING'] directly instead.  

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list