<div dir="ltr">Dea all<br><br>I am sure , my computer can access <br><a href="http://labs.metacarta.com/wms/vmap0">http://labs.metacarta.com/wms/vmap0</a><br><br>my tilecache.cfg is default one, <br>I only have changed this section <br>
<br>[cache]<br>type=DiskCache<br>base= c:\tilecache2<br><br>I have one question, do i need run setup.py in terminal? what s that for ?<br>I saw some tutorials which do not mention this setp?<br><br>Thanks in advance<br><br>
Xiaoyu<br><br><div class="gmail_quote">On Fri, Jul 18, 2008 at 12:02 PM, Guillaume Sueur <<a href="mailto:guillaume.sueur@neogeo-online.net">guillaume.sueur@neogeo-online.net</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;">
seems like the tilecache layer you are trying to generate is mis-configured. See the URLError(err). Check your tilecache.cfg, and your http access to the wms layers set into it.<br>
<br>
Guillaume<br>
<br>
Xiaoyu Guan a écrit :<br>
<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">
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/" target="_blank">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/" target="_blank">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>
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>
<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>
<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>
<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>
<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>
<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>
<br>
<br>
Seem like the egg, doesnt work<br>
<br>
All the best<br>
<br>
Xiaoyu<br>
<br></div></div><div class="Ih2E3d">
On Fri, Jul 18, 2008 at 11:34 AM, Tibor Arpas <<a href="mailto:tibor.arpas@infinit.sk" target="_blank">tibor.arpas@infinit.sk</a> <mailto:<a href="mailto:tibor.arpas@infinit.sk" target="_blank">tibor.arpas@infinit.sk</a>>> wrote:<br>
<br>
Hi,<br>
I cannot really comment on your installation. But regarding the point 4.<br>
What would you expect after opening<br>
<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<br>
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<br>
<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>
On Fri, Jul 18, 2008 at 11:16 AM, Xiaoyu Guan <<a href="mailto:guanxiaoyu@gmail.com" target="_blank">guanxiaoyu@gmail.com</a><br></div><div><div></div><div class="Wj3C7c">
<mailto:<a href="mailto:guanxiaoyu@gmail.com" target="_blank">guanxiaoyu@gmail.com</a>>> wrote:<br>
<br>
Dear all<br>
I have setup Mod python with Apache 2.2 (Python 2.5) . from the<br>
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>
At first, I copy Tilecache 2.04 to /Apache2.2/cgi-bin/, use<br>
terminal run setup.py, seem like nothing works, then I copy all<br>
the file to /Apache2.2/htdocs/tilecache , run setup.py again.<br>
<br>
according to some tutorials online, I have configured my Apache<br>
like this:<br>
<br>
1. Add<br>
<Directory "C:/Program Files/Apache Software<br>
Foundation/Apache2.2/htdocs/tilecache"><br>
AddHandler python-program .py<br>
PythonHandler TileCache.Service<br>
PythonOption TileCacheConfig "C:/Program Files/Apache<br>
Software Foundation/Apache2.2/htdocs/tilecache/tilecache.cfg"<br>
PythonPath "['c:\Program Files\Apache Software<br>
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<br>
/Apache2.2/htdocs/tilecache/)index.html openlayers script like this<br>
var map, layer;<br>
<br>
function init(){<br>
map = new OpenLayers.Map( $('map'),<br>
{'maxResolution': 360/512});<br>
layer = new OpenLayers.Layer.WMS( "VMap0",<br>
"/tilecache/tilecache.py?", {layers:<br>
'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<br>
error message, but follow xml codes<br>
<?xml version="1.0" encoding="UTF-8" ?><br></div></div>
- <#11b3584e60caad20_11b3574d15372b4f_> <Services><div class="Ih2E3d"><br>
<TileMapService version="*1.0.0*"<br>
href="*<a href="http://127.0.0.1/1.0.0/*" target="_blank">http://127.0.0.1/1.0.0/*</a>" /><br>
</Services><br>
<br>
<br>
<br>
now I could not find where error is ? is there anybody have same<br>
problems before ?<br>
Thanks in advance<br>
<br>
All the best<br>
-- Xiaoyu Guan (Sam)<br>
Geo-information Science<br>
Wageningen UR<br>
<br>
_______________________________________________<br>
Tilecache mailing list<br></div>
<a href="mailto:Tilecache@openlayers.org" target="_blank">Tilecache@openlayers.org</a> <mailto:<a href="mailto:Tilecache@openlayers.org" target="_blank">Tilecache@openlayers.org</a>><div class="Ih2E3d"><br>
<a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
<br>
<br>
<br>
<br>
<br>
-- <br>
Xiaoyu Guan (Sam)<br>
Geo-information Science<br>
Wageningen UR<br>
<br>
<br></div>
------------------------------------------------------------------------<div class="Ih2E3d"><br>
<br>
_______________________________________________<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>
</div></blockquote>
<br>
-- <br>
<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Xiaoyu Guan (Sam)<br>Geo-information Science<br>Wageningen UR<br>
</div>