<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&styles=&Format=application/openlayers&request=GetMap&version=1.1.1&layers=topp:Mydatalayer&width=590&height=550&srs=EPSG:28992">http://127.0.0.1:2008/geoserver/wms?bbox=-77498.10277191945,252450.97991880335,343091.0787104775,680814.505391243&styles=&Format=application/openlayers&request=GetMap&version=1.1.1&layers=topp:Mydatalayer&width=590&height=550&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> var lon = 7.37;<br> var lat = 52.1;<br> var zoom = 10;<br> var map, layer;<br><br> function init(){<br> OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3;<br>
map = new OpenLayers.Map( 'map' );<br> layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",<br> "/tilecache/tilecache.py", {layers: 'topp'} );<br>
map.addLayer(layer);<br><br> map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);<br> map.addControl(new OpenLayers.Control.MousePosition());<br><br> map.addControl( new OpenLayers.Control.LayerSwitcher() );<br>
}<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>