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

Matthew Doyle M.Doyle at bom.gov.au
Wed May 28 03:29:52 EDT 2008


Ahhh. Thanks Brent.
I'll get my administrator to install this as a Python extension first
thing.

Cheers,
Matt

-----Original Message-----
From: Brent Pedersen [mailto:bpederse at gmail.com] 
Sent: Wednesday, 28 May 2008 3:56 PM
To: Matthew Doyle
Cc: tilecache at openlayers.org
Subject: Re: [Tilecache] Problems with metaTile / metaBuffer
[SEC=UNCLASSIFIED]

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?TRANSP
> ARENT=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?TRANSP
> ARENT=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