[Tilecache] Trouble with tilecache config

Tom Farnham thomas_farnham at unioncab.com
Wed Jun 13 12:07:25 EDT 2007


Here is my config:
[cache]
type=DiskCache
base=/tmp/tilecache/

[map]
type=MapServerLayer
layers=Water
mapfile=test.map
extension=png
size=256,256
srs=EPSG:4269

I just changed [map] to [Water] and now I get this error:
An error occurred: No module named mapscript

I suspect the python mapscript didn't get installed properly. Perhaps  
you could affirm this?

Thank you for the help,

tom

On Jun 13, 2007, at 11:03 AM, Christopher Schmidt wrote:

> On Wed, Jun 13, 2007 at 10:32:42AM -0500, Tom Farnham wrote:
>> I'm attempting to setup tilecache for use with my postgis db and
>> mapserver. I'm running Mac OS X.
>>
>> I get the following when attempting to view a tile:
>>
>> An error occurred: 'Water'
>>    File "/Library/WebServer/CGI-Executables/TileCache/Service.py",
>> line 479, in cgiHandler
>>      format, image = service.dispatchRequest( params, path_info,
>> req_method, host )
>>    File "/Library/WebServer/CGI-Executables/TileCache/Service.py",
>> line 395, in dispatchRequest
>>      tile = WMS(self).parse(params, path_info, host)
>>    File "/Library/WebServer/CGI-Executables/TileCache/Service.py",
>> line 120, in parse
>>      return self.getMap(param)
>>    File "/Library/WebServer/CGI-Executables/TileCache/Service.py",
>> line 124, in getMap
>>      layer = self.service.layers[param["layers"]]
>
> What does your config look like? Do you have a:
>
> [Water]
> type=WMS
> ...
>
> In your config?
>
> Regards,
> -- 
> Christopher Schmidt
> MetaCarta




More information about the Tilecache mailing list