[Tilecache] Problem with resolution index

Christoph Lupprich clupprich at gmail.com
Thu Mar 12 02:10:13 EDT 2009


I have a working OpenLayers script [1] which gets tiles from a public
available WMS server. I now want to teach TileCache to cache this WMS
[2] server but unfortunately it keeps telling me that it can't find
the resolution index [3]. The settings are all the same, can somebody
spot what I have missed?

Kind regards & thanks,
Christoph

[1]
var mapOptions = {
   controls: [],
   maxExtent: new OpenLayers.Bounds(2969387, 5199925, 4344395, 6168775),
   restrictedExtent: new OpenLayers.Bounds(2969387, 5199925, 4344395, 6168775),
   units: "m",
   projection: new OpenLayers.Projection("EPSG:31467"),
   tileSize: new OpenLayers.Size(237, 250),
   resolutions: [1937.7, 968.85, 484.425, 242.2125, 121.10625,
60.553125, 30.2765625, 15.13828125, 7.569140625],
   displayProjection: new OpenLayers.Projection("EPSG:4326")
};

var baseLayer = new OpenLayers.Layer.WMS(
   "Germany",
       "http://www.pegelonline.wsv.de/webservices/gis/tilecache?",
       {
           layers: 'basic',
           format: 'image/png'
       }
);


[2]
[basic]
type=WMS
url=http://www.pegelonline.wsv.de/webservices/gis/tilecache?
layers=basic
srs=EPSG:31467
bbox=2969387,5199925,4344395,6168775
resolution=1937.7,968.85,484.425,242.2125,121.10625,60.553125,30.2765625,15.13828125,7.569140625
extension=png
size=237,250

[3]
An error occurred: can't find resolution index for 5801.721519.
Available resolutions are:
[1937.7, 968.85000000000002, 484.42500000000001, 242.21250000000001,
121.10625, 60.553125000000001, 30.276562500000001, 15.13828125,
7.5691406250000002]



More information about the Tilecache mailing list