[Tilecache] GeoServer + TileCahe + WMS + OpenLayer = Doesnt work
Xiaoyu Guan
guanxiaoyu at gmail.com
Wed Jul 23 16:51:49 EDT 2008
Dear list:
I have successfully setup GeoServer1.6 (Apache Tomcat) + Tilecache(Apache2.2
+ mod_python) + OpenLayer + WMS
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.
For example,
I have WMS link like this:
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
and I setup tilecache like this in .cfg file
[topp]
type=WMSLayerw
layers=topp:Mydatalayer
url=http://127.0.0.1:2008/geoserver/wms
extension=png
srs=EPSG:28992
and my OpenLayer script like this
var lon = 7.37;
var lat = 52.1;
var zoom = 10;
var map, layer;
function init(){
OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3;
map = new OpenLayers.Map( 'map' );
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"/tilecache/tilecache.py", {layers: 'topp'} );
map.addLayer(layer);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
map.addControl(new OpenLayers.Control.MousePosition());
map.addControl( new OpenLayers.Control.LayerSwitcher() );
}
the result just show pink images, I dont why this happened. I was try to
setup more parameters. but I did not successed.
Is there anybody have idea about this situations? Thanks in advance
All the best
Xiaoyu
--
Xiaoyu Guan (Sam)
Geo-information Science
Wageningen UR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20080723/75cf8734/attachment.html
More information about the Tilecache
mailing list