[Tilecache] Problem with TileCache installation

Ruben Pardo correosig at gmail.com
Tue Sep 18 05:52:47 EDT 2007


I think that i find the solution
i change the TileCache.Service string for TileCache/Service

<Directory /opt/ms/apps/tilecache/>
         AddHandler python-program .py
        PythonHandler TileCache/Service
        PythonOption TileCacheConfig /opt/ms/apps/tilecache/tilecache.cfg

>     PythonDebug On
> </Directory>


but now, i get an error when i try to obtain the map in the bbox ...

An error occurred: empty string for float() File
"/var/tilecache/TileCache/Service.py", line 459, in modPythonHandler host )
File "/var/tilecache/TileCache/Service.py", line 431, in dispatchRequest
tile = WMS(self).parse(params, path_info, host) File
"/var/tilecache/TileCache/Service.py", line 150, in parse return
self.getMap(param)
File "/var/tilecache/TileCache/Service.py", line 153, in getMap bbox =
map(float, param["bbox"].split(","))

My snippet tilecache.cfg is...

[Municipios]
type=WMSLayer
url=
http://10.226.125.120/cgi-bin/mapserv?map=/opt/ms/apps/mosaico_sandbox/htdocs/prbmosaico.map
?
extension=png
layers=Municipios
srs=EPSG:23030
bbox=186555.713,4136068.489,211516.81,4156763.635

what am i doing wrong?
thanks,

2007/9/17, Ruben Pardo <correosig at gmail.com>:
>
> I'm using mod_python
> i've got a TileCache directory with the Service.py inside of it,
>
> My configuration is:
> in httpd.conf :
>
> <Directory /opt/ms/apps/tilecache/>
>          AddHandler python-program .py
>         PythonHandler TileCache.Service
>         PythonOption TileCacheConfig /opt/ms/apps/tilecache/tilecache.cfg
>     PythonDebug On
> </Directory>
>
> and i've got the next httpd_tile.conf (to configure acces to the tilecache
> directory )
>
> Alias /tilecache/ "/opt/ms/apps/tilecache/"
>
> <Directory "/opt/ms/apps/tilecache/">
>   AllowOverride None
>   Options Indexes FollowSymLinks Multiviews
>   Order allow,deny
>   Allow from all
> </Directory>
>
> thanks,
>
>
> 2007/9/17, Christopher Schmidt <crschmidt at metacarta.com>:
> >
> > On Mon, Sep 17, 2007 at 02:03:50PM +0200, Ruben Pardo wrote:
> > > thanks Chrhis,
> > >
> > > the error was an incorrect python location in the script (i put
> > > #!/usr/local/python/bin instead of #!/usr/local/bin/python ),
> > >
> > > when i solve this i get  ...  ImportError: No module named
> > TileCache.Service
> > > do i need to change all python location in every .py file?
> > > thanks
> >
> > I'm confused -- are you using mod_python, or CGI? Does
> > /opt/ms/apps/tilecache/ have a TileCache/ directory in it? Is there a
> > Service.py file inside there?
> >
> > Regards,
> > --
> > Christopher Schmidt
> > MetaCarta
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20070918/c21b69ae/attachment.html


More information about the Tilecache mailing list