[Spanish] sobre TileCache en modo CGI en Mac

PB pb at osgeo.org
Fri Apr 10 15:35:49 EDT 2009


Hola Lista,Llevo parte del día tratando de hacer funcionar "algo" para
Cache(ar) Tiles.
Después de varios intentos lo más que logré conseguir fue unos xml pero de
pintar tiles nada de nada.
En tilecache.cfg debería bastar con:

[tilecache_options]
path=/Library/WebServer/Tilecahce/

[cache]
type=Disk
base=/Geo/tiles

[basic]
type=WMS
url=http://labs.metacarta.com/wms/vmap0
extension=png

pero cuando:

http://192.168.4.120/Tilecache/tilecache.cgi/1.0.0/basic/0/0/0.png

Lo que obtengo es:

An error occurred: <urlopen error (60, 'Operation timed out')>
  File "/Library/WebServer/Tilecache/TileCache/Service.py", line 324, in
cgiHandler
    format, image = service.dispatchRequest( params, path_info, req_method,
host )
  File "/Library/WebServer/Tilecache/TileCache/Service.py", line 209, in
dispatchRequest
    return self.renderTile(tile, params.has_key('FORCE'))
  File "/Library/WebServer/Tilecache/TileCache/Service.py", line 139, in
renderTile
    data = layer.render(tile, force=force)
  File "/Library/WebServer/Tilecache/TileCache/Layer.py", line 443, in
render
    return self.renderTile(tile)
  File "/Library/WebServer/Tilecache/TileCache/Layers/WMS.py", line 29, in
renderTile
    tile.data, response = wms.fetch()
  File "/Library/WebServer/Tilecache/TileCache/Client.py", line 58, in fetch
    response = self.client.open(urlrequest)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/urllib2.py",
line 326, in open
    '_open', req)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/urllib2.py",
line 306, in _call_chain
    result = func(*args)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/urllib2.py",
line 901, in http_open
    return self.do_open(httplib.HTTP, req)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/urllib2.py",
line 886, in do_open
    raise URLError(err)


Si manoseo un poco el Service.py poniéndole un path a mano
cfgfiles = "/Library/WebServers/Tilecache/tilecacehe.cfg" #según PB

Obtengo:

An error occurred: No section: 'cache'
  File "/Library/WebServer/Tilecache/TileCache/Service.py", line 97, in
_load
    cache = cls.loadFromSection(config, "cache", Cache)
  File "/Library/WebServer/Tilecache/TileCache/Service.py", line 52, in
_loadFromSection
    type  = config.get(section, "type")
  File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ConfigParser.py",
line 505, in get
    raise NoSectionError(section)

Sospecho que no está entendiendo lo que pone tilecache.cfg

¿Alguien tiene idea de cómo solucionarlo o al menos algo para probar?

bb
PB
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://lists.osgeo.org/pipermail/spanish/attachments/20090410/535b6d1f/attachment.html


More information about the Spanish mailing list