[Tilecache] Problems with metaTile / metaBuffer [SEC=UNCLASSIFIED]

Matthew Doyle M.Doyle at bom.gov.au
Wed May 28 01:31:34 EDT 2008


Hi all, 

After having successfully managed to get TileCache working with my WMS
layers i am now trying to include a layer which has labels. These labels
aren't getting drawn when they are near the edge of any tile, a problem
i see a few users have come across. 

The solution has always been something like adding the following to
one's tilecache.cfg: 
metaTile=true
metaBuffer=40 

I have now tried this, and I receive the following error from any tile
through Firebug. 

An error occurred: No module named Image 
 File "/web/50006/cgi-bin/tilecache-2.02/TileCache/Service.py", line
283, in cgiHandler 
    format, image = service.dispatchRequest( params, path_info,
req_method, host ) 
  File "/web/50006/cgi-bin/tilecache-2.02/TileCache/Service.py", line
201, in dispatchRequest 
    return self.renderTile(tile, params.has_key('FORCE')) 
  File "/web/50006/cgi-bin/tilecache-2.02/TileCache/Service.py", line
134, in renderTile 
    data = layer.render(tile) 
  File "/web/50006/cgi-bin/tilecache-2.02/TileCache/Layer.py", line 377,
in render 
    image = self.renderMetaTile(metatile, tile) 
  File "/web/50006/cgi-bin/tilecache-2.02/TileCache/Layer.py", line 337,
in renderMetaTile 
    import StringIO, Image 


My tilecache.cfg file is as follows (i have forced all the bbox extents
to match the base layer - free_elevation. Is this good/common
practice?): 

[free_elevation] 
type=WMS 
url=http://ows.bom.gov.au/cgi-bin/mapserver/users/ncc000/latest
<http://ows.bom.gov.au/cgi-bin/mapserver/users/ncc000/latest> 
layers=free_elevation 
extension=png 
size=256,256 
bbox=112.919,-43.741,153.641,-8.999 
maxResolution=0.07953515625 
srs=EPSG:4326 
extent_type=loose 

[free_australia_line] 
type=WMS 
url=http://ows.bom.gov.au/cgi-bin/mapserver/users/ncc000/latest?TRANSPAR
ENT=true
<http://ows.bom.gov.au/cgi-bin/mapserver/users/ncc000/latest?TRANSPARENT
=true> 
layers=free_australia_line 
extension=gif 
size=256,256 
bbox=112.919,-43.741,153.641,-8.999 
maxResolution=0.07953515625 
srs=EPSG:4326 
extent_type=loose 

[cdio_stations] 
type=WMS 
url=http://ows.bom.gov.au/cgi-bin/mapserver/users/ncc000/latest?TRANSPAR
ENT=true
<http://ows.bom.gov.au/cgi-bin/mapserver/users/ncc000/latest?TRANSPARENT
=true> 
layers=cdio_stations 
extension=gif 
bbox=112.919,-43.741,153.641,-8.999 
maxResolution=0.07953515625 
srs=EPSG:4326 
metaTile=true 
metaBuffer=40 
extent_type=loose 
#metaSize=5,5 ---- i have commented this out - don't think its needed.
Still, the same error appears. 


Any help would be greatly appreciated and rewarded with beer. 

Cheers and regards, 
Matt 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20080528/711aebb4/attachment.html


More information about the Tilecache mailing list