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

Brent Pedersen bpederse at gmail.com
Wed May 28 01:55:59 EDT 2008


hi, you need the python imaging library from here:
http://www.pythonware.com/products/pil/
or as the python-imaging package in ubuntu


On Tue, May 27, 2008 at 10:31 PM, Matthew Doyle <M.Doyle at bom.gov.au> wrote:
> 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
> 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?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?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
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
>
>



More information about the Tilecache mailing list