<div dir="ltr">Dear list:<br><br>I have successfully setup GeoServer1.6 (Apache Tomcat) + Tilecache(Apache2.2 + mod_python) + OpenLayer + WMS<br>I have already test my Geoserver and tilecache , both of them are work. I used the default examples of Geoserver. However, when I setup my own data layers for tilecache. it doesnt work. <br>
For example, <br>I have WMS link like this:<br><a href="http://127.0.0.1:2008/geoserver/wms?bbox=-77498.10277191945,252450.97991880335,343091.0787104775,680814.505391243&amp;styles=&amp;Format=application/openlayers&amp;request=GetMap&amp;version=1.1.1&amp;layers=topp:Mydatalayer&amp;width=590&amp;height=550&amp;srs=EPSG:28992">http://127.0.0.1:2008/geoserver/wms?bbox=-77498.10277191945,252450.97991880335,343091.0787104775,680814.505391243&amp;styles=&amp;Format=application/openlayers&amp;request=GetMap&amp;version=1.1.1&amp;layers=topp:Mydatalayer&amp;width=590&amp;height=550&amp;srs=EPSG:28992</a><br>
<br>and I setup tilecache like this in .cfg file<br><br>[topp]<br>type=WMSLayerw<br>layers=topp:Mydatalayer<br>url=<a href="http://127.0.0.1:2008/geoserver/wms">http://127.0.0.1:2008/geoserver/wms</a><br>extension=png<br>
srs=EPSG:28992<br><br>and my OpenLayer script like this <br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var lon = 7.37;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var lat = 52.1;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var zoom = 10;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var map, layer;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function init(){<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map = new OpenLayers.Map( &#39;map&#39; );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; layer = new OpenLayers.Layer.WMS( &quot;OpenLayers WMS&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;/tilecache/tilecache.py&quot;, {layers: &#39;topp&#39;} );<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.addLayer(layer);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; map.addControl(new OpenLayers.Control.MousePosition());<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.addControl( new OpenLayers.Control.LayerSwitcher() );<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br clear="all">the result just show pink images, I dont why this happened. I was try to setup more parameters. but I did not successed. <br>Is there anybody have idea about this situations? Thanks in advance<br>
<br>All the best <br><br>Xiaoyu<br><br>-- <br>Xiaoyu Guan (Sam)<br>Geo-information Science<br>Wageningen UR<br>
</div>