I think that i find the solution<br>i change the TileCache.Service string for TileCache/Service<br><br><span class="q"><Directory /opt/ms/apps/tilecache/><br></span> AddHandler python-program .py
<br> PythonHandler TileCache/Service<br> PythonOption TileCacheConfig /opt/ms/apps/tilecache/tilecache.cfg<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
PythonDebug On <br></Directory></blockquote><br>but now, i get an error when i try to obtain the map in the bbox ...<br><br>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(","))
<br><br>My snippet tilecache.cfg is...<br><br>[Municipios]<br>type=WMSLayer<br>url=<a href="http://10.226.125.120/cgi-bin/mapserv?map=/opt/ms/apps/mosaico_sandbox/htdocs/prbmosaico.map">http://10.226.125.120/cgi-bin/mapserv?map=/opt/ms/apps/mosaico_sandbox/htdocs/prbmosaico.map
</a>?<br>extension=png<br>layers=Municipios<br>srs=EPSG:23030<br>bbox=186555.713,4136068.489,211516.81,4156763.635<br><br>what am i doing wrong?<br>thanks,<br><br><div><span class="gmail_quote">2007/9/17, Ruben Pardo <
<a href="mailto:correosig@gmail.com">correosig@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm using mod_python
<br>i've got a TileCache directory with the Service.py inside of it, <br><br>My configuration is:<br>in httpd.conf :<span class="q"><br><br><Directory /opt/ms/apps/tilecache/><br></span> AddHandler python-program .py
<br> PythonHandler TileCache.Service<br> PythonOption TileCacheConfig /opt/ms/apps/tilecache/tilecache.cfg<br> PythonDebug On <br></Directory><br><br>and i've got the next httpd_tile.conf (to configure acces to the tilecache directory )
<br><br>Alias /tilecache/ "/opt/ms/apps/tilecache/"<span class="q"><br><br><Directory "/opt/ms/apps/tilecache/"><br></span> AllowOverride None<br> Options Indexes FollowSymLinks Multiviews <br>
Order allow,deny<br> Allow from all
<br></Directory><br><br>thanks,<br><br><br><div><span class="gmail_quote">2007/9/17, Christopher Schmidt <<a href="mailto:crschmidt@metacarta.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
crschmidt@metacarta.com</a>>:</span><div><span class="e" id="q_11513cda75231928_5"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, Sep 17, 2007 at 02:03:50PM +0200, Ruben Pardo wrote:<br>> thanks Chrhis,<br>><br>> the error was an incorrect python location in the script (i put<br>> #!/usr/local/python/bin instead of #!/usr/local/bin/python ),
<br>><br>> when i solve this i get ... ImportError: No module named TileCache.Service<br>> do i need to change all python location in every .py file?<br>> thanks<br><br>I'm confused -- are you using mod_python, or CGI? Does
<br>/opt/ms/apps/tilecache/ have a TileCache/ directory in it? Is there a<br>Service.py file inside there?<br><br>Regards,<br>--<br>Christopher Schmidt<br>MetaCarta<br></blockquote></span></div></div><br>
</blockquote></div><br>