<div dir="ltr">Hi Tibor:<br>Thanks for your advise. <br>as you mentioned, I just try the two link<br><br>from <a href="http://127.0.0.1/tilecache/tilecache.py/1.0.0/">http://127.0.0.1/tilecache/tilecache.py/1.0.0/</a><br>I got xml codes like this <br>
<br><TileMapService version="1.0.0"><br>−<br><TileMaps><br><TileMap href="<a href="http://127.0.0.1/tilecache/tilecache.py/1.0.0/basic/">http://127.0.0.1/tilecache/tilecache.py/1.0.0/basic/</a>" srs="EPSG:4326" title="basic" profile="global-geodetic"/><br>
</TileMaps><br></TileMapService><br><br>However, I got error when I open next link <br><br><pre>An error occurred: <urlopen error (10060, 'Operation timed out')><br> File "c:\python25\lib\site-packages\TileCache-2.04-py2.5.egg\TileCache\Service.py", line 224, in modPythonHandler<br>
host )<br> File "c:\python25\lib\site-packages\TileCache-2.04-py2.5.egg\TileCache\Service.py", line 208, in dispatchRequest<br> return self.renderTile(tile, params.has_key('FORCE'))<br> File "c:\python25\lib\site-packages\TileCache-2.04-py2.5.egg\TileCache\Service.py", line 138, in renderTile<br>
data = layer.render(tile)<br> File "c:\python25\lib\site-packages\TileCache-2.04-py2.5.egg\TileCache\Layer.py", line 437, in render<br> return self.renderTile(tile)<br> File "c:\python25\lib\site-packages\TileCache-2.04-py2.5.egg\TileCache\Layers\WMS.py", line 29, in renderTile<br>
tile.data, response = wms.fetch()<br> File "c:\python25\lib\site-packages\TileCache-2.04-py2.5.egg\TileCache\Client.py", line 54, in fetch<br> response = self.client.open(urlrequest)<br> File "C:\Python25\lib\urllib2.py", line 374, in open<br>
response = self._open(req, data)<br> File "C:\Python25\lib\urllib2.py", line 392, in _open<br> '_open', req)<br> File "C:\Python25\lib\urllib2.py", line 353, in _call_chain<br> result = func(*args)<br>
File "C:\Python25\lib\urllib2.py", line 1101, in http_open<br> return self.do_open(httplib.HTTPConnection, req)<br> File "C:\Python25\lib\urllib2.py", line 1076, in do_open<br> raise URLError(err)<br>
</pre><br>Seem like the egg, doesnt work<br><br>All the best <br><br>Xiaoyu<br><br><div class="gmail_quote">On Fri, Jul 18, 2008 at 11:34 AM, Tibor Arpas <<a href="mailto:tibor.arpas@infinit.sk">tibor.arpas@infinit.sk</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Hi,<br>I cannot really comment on your installation. But regarding the point 4.<br>
What would you expect after opening <a href="http://127.0.0.1/tilecache/tilecache.py" target="_blank">http://127.0.0.1/tilecache/tilecache.py</a> ?The XML looks like everything is working fine. Did you try <br>
<a href="http://127.0.0.1/tilecache/tilecache.py/1.0.0/" target="_blank">http://127.0.0.1/tilecache/tilecache.py/1.0.0/</a> ? And <a href="http://127.0.0.1/tilecache/tilecache.py/1.0.0/basic/0/0/0.png" target="_blank">http://127.0.0.1/tilecache/tilecache.py/1.0.0/basic/0/0/0.png</a> ?<br>
If that would work, your Tilecache installation is fine.<br><br>Tibor<br><br><div class="gmail_quote"><div><div></div><div class="Wj3C7c">On Fri, Jul 18, 2008 at 11:16 AM, Xiaoyu Guan <<a href="mailto:guanxiaoyu@gmail.com" target="_blank">guanxiaoyu@gmail.com</a>> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c"><div dir="ltr">Dear all <br>I have setup Mod python with Apache 2.2 (Python 2.5) . from the test page, I am sure mod python it works<br>
then I try to setup TileCache 2.04<br>after download setuptools-0.6c8-py2.5.egg<br clear="all">
At first, I copy Tilecache 2.04 to /Apache2.2/cgi-bin/, use terminal run setup.py, seem like nothing works, then I copy all the file to /Apache2.2/htdocs/tilecache , run setup.py again. <br><br>according to some tutorials online, I have configured my Apache like this:<br>
<br>1. Add<br><Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/tilecache"><br> AddHandler python-program .py<br> PythonHandler TileCache.Service<br> PythonOption TileCacheConfig "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/tilecache/tilecache.cfg"<br>
PythonPath "['c:\Program Files\Apache Software Foundation\Apache2.2\htdocs\tilecache'] + sys.path"<br> PythonDebug On<br></Directory><br><br>to Apache httpd.conf, restart apache, no error<br>
beside that tilecache.cfg modified like this <br><br>[cache]<br>type=DiskCache<br>base= c:\tilecache2<br><br>2. Change some python script header to #!C:/Python25/python.exe -u<br><br>3. I changed tilecache.cgi into tilecache.py (under /Apache2.2/htdocs/tilecache/)index.html openlayers script like this<br>
var map, layer;<br><br> function init(){<br> map = new OpenLayers.Map( $('map'), {'maxResolution': 360/512});<br> layer = new OpenLayers.Layer.WMS( "VMap0", <br>
"/tilecache/tilecache.py?", {layers: 'basic', format: 'image/png' } );<br> map.addLayer(layer);<br> map.addControl(new OpenLayers.Control.Permalink());<br>
if (!map.getCenter()) map.zoomToMaxExtent();<br> }<br><br>4. when I open <a href="http://127.0.0.1/tilecache/tilecache.py" target="_blank">http://127.0.0.1/tilecache/tilecache.py</a> without error message, but follow xml codes<br>
<div><span> </span> <span><?</span><span>xml
version="1.0" encoding="UTF-8" </span><span>?></span> </div>
<div>
<div style="margin-left: 1em; text-indent: -2em;"><a href="#11b3584e60caad20_11b3574d15372b4f_">-</a> <span><</span><span>Services</span><span>></span></div>
<div>
<div>
<div style="margin-left: 1em; text-indent: -2em;"><span> </span> <span><</span><span>TileMapService</span> <span>version</span><span>="</span><b>1.0.0</b><span>"</span><span> href</span><span>="</span><b><a href="http://127.0.0.1/1.0.0/" target="_blank">http://127.0.0.1/1.0.0/</a></b><span>"</span><span> /></span> </div>
</div>
<div><span> </span> <span></</span><span>Services</span><span>><br><br><br></span></div></div></div><br>now I could not find where error is ? is there anybody have same problems before ?<br>
Thanks in advance <br><br>All the best <br>-- <br>Xiaoyu Guan (Sam)<br>Geo-information Science<br>Wageningen UR<br>
</div>
<br></div></div>_______________________________________________<br>
Tilecache mailing list<br>
<a href="mailto:Tilecache@openlayers.org" target="_blank">Tilecache@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><br>-- <br>Xiaoyu Guan (Sam)<br>Geo-information Science<br>Wageningen UR<br>
</div>