Hi to Everyone! I have setup an OpenLayers application that I am trying to get to work with TileCache. The layer is a MapServer served WMS layer (the base layer comes from Google).
Using the following URL I can see a tile: http://www.seismologie.bgr.de:8080/cgi-bin/tilecache-2.04/tilecache.cgi/1.0.0/basic/0/0/0.png But in my OpenLayers application I'm getting the following error message: An error occurred: can't find resolution index for 9936.813675. Available resolutions are: [0.703125, 0.3515625, 0.17578125, 0.087890625, 0.0439453125, 0.02197265625, 0.010986328125, 0.0054931640625, 0.00274658203125, 0.001373291015625, 0.0006866455078125, 0.00034332275390625, 0.000171661376953125, 8.58306884765625e-05, 4.291534423828125e-05, 2.1457672119140625e-05] Here are the map and layer definitions from the html file: var options = { projection: new OpenLayers.Projection("EPSG:900913"), units: "m", maxResolution: 156543.0339, maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34) }; map = new OpenLayers.Map($("map"), options,{numZoomLevels:16}); var seis = new OpenLayers.Layer.WMS("Erdbeben weltweit ", http://www.seismologie.bgr.de:8080/cgi-bin/tilecache-2.04/tilecache.cgi?", //{transparent: 'true', layers: ['q_year','q_month']}, {transparent: 'true', layers: 'basic'}, {'isBaseLayer': false, 'gutter': 17}); Here are the entries in the tilecache.cfg: # Configuration for MC TileCache [cache] type=DiskCache base=/home/b311www/wms/tilecache_tmp [basic] type=WMSLayer mapfile=/home/b311www/mapserv_bin/seis_ger_wms3.map url=http://www.seismologie.bgr.de:8080/cgi-bin/mapserv?map=seis_ger_wms3.map layers=q_year[,q_month] #layers=q_year #extension={png,jpeg,gif} extension=png size=256,256 bbox=-180.0,-90.0,180.0,90.0 #srs=EPSG:4326 srs=EPSG:900913 levels=16 resolutions=0.703125, 0.3515625, 0.17578125, 0.087890625, 0.0439453125, 0.02197265625, 0.010986328125, 0.0054931640625, 0.00274658203125, 0.001373291015625, 0.0006866455078125, 0.00034332275390625, 0.000171661376953125, 8.58306884765625e-05, 4.291534423828125e-05, 2.1457672119140625e-05, 1.0728836059570312e-05, 5.3644180297851562e-06, 2.6822090148925781e-06, 1.3411045074462891e-06 metaTile=true metaSize=5,5 metaBuffer=17 mime_type=image/png extent_type=loose tms_type=google Any help would be much appreciated. Regards, Nina _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
