[Tilecache] TileCache configuration Problem?
R. Ortner
reinhard.ortner at edu.fh-kaernten.ac.at
Mon Nov 26 03:44:49 EST 2007
Hi, i tried to set up tilecache running under cgi.
i copied the tilecache files in:
/var/www/htdocs/tc
made a folder for the cache files:
/var/www/htdocs/tilecache
made the entry in the apache httpd.conf file:
<Directory /var/www/htdocs/tc>
AddHandler cgi-script .cgi
Options +ExecCGI
</Directory>
and changed the cache dir in the tilecache.cfg file:
[cache]
type=DiskCache
base=/var/www/htdocs/tilecache/
rest of the tilecache.cfg is unchagned.
Now i tried to start the index.html from the tilecache directory:
http://172.21.18.45/tc/index.html
-> the restults are pinkt tiles after a long time of wating!
When i try to get a tile with the wms request from the readme with:
http://172.21.18.45/tc/tilecache.cgi?LAYERS=basic&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-180,-90,0,90&WIDTH=256&HEIGHT=256
-> i get the following error message:
An error occurred: <urlopen error (110, 'Connection timed out')>
File "/var/www/htdocs/tc/TileCache/Service.py", line 525, in cgiHandler
format, image = service.dispatchRequest( params, path_info, req_method,
host )
File "/var/www/htdocs/tc/TileCache/Service.py", line 443, in
dispatchRequest
return self.renderTile(tile, params.has_key('FORCE'))
File "/var/www/htdocs/tc/TileCache/Service.py", line 401, in renderTile
data = layer.render(tile)
File "/var/www/htdocs/tc/TileCache/Layer.py", line 253, in render
return self.renderTile(tile)
File "/var/www/htdocs/tc/TileCache/Layer.py", line 297, in renderTile
tile.data, response = wms.fetch()
File "/var/www/htdocs/tc/TileCache/Client.py", line 45, in fetch
response = self.client.open(urlrequest)
File "/usr/lib/python2.4/urllib2.py", line 358, in open
response = self._open(req, data)
File "/usr/lib/python2.4/urllib2.py", line 376, in _open
'_open', req)
File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
result = func(*args)
File "/usr/lib/python2.4/urllib2.py", line 1021, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.4/urllib2.py", line 996, in do_open
raise URLError(err)
the permissions for the folders and files are all set to 755 or 777.
Maybe anyone have an idea whats wrong? I thought i followed the instructions
correctly but oviously i missed something!
--
View this message in context: http://www.nabble.com/TileCache-configuration-Problem--tf4873861.html#a13945850
Sent from the TileCache mailing list archive at Nabble.com.
More information about the Tilecache
mailing list