[Tilecache] An error occurred: Current x value ... is too far from tile corner x ...

Christoph Lingg christoph at lingg.eu
Sat Nov 14 13:19:25 EST 2009


(I think my last mail hasn't worked without registration, here again: )

Hello everybody,

our project just changed from GoogleMaps to OpenLayers and we are  
happy about being independent from proprietary solutions!

But we also have to hurdle some new difficulties, and one of them  
seems to be a big challenge ;-) We are using the combination Mapnik,  
TileCache and OpenLayers and I couldn't figure out how to stick them  
together properly! The tiles are not displayed, but the error message

 > An error occurred: Current x value 1079827.000000 is too far from  
tile corner x 1095796.660000

is shown. Can anybody give me a hint how to go on? My TileCache and  
OpenLayers configs look like that:
		
            var options = {
                projection: new OpenLayers.Projection("EPSG:900913"),
                displayProjection: new OpenLayers.Projection("EPSG: 
4326"),
                maxExtent: new OpenLayers.Bounds 
(923284,5940116,1164513,6148046),
                resolutions:  
[156543.0,78271.5,39135.75,19567.875,9783.9375,4891.96875,2445.984375,1222.9921875,611.49609375,305.748046875,152.874023438,76.4370117188,38.2185058594,19.1092529297,9.55462646484,4.77731323242,2.38865661621,1.19432830811,0.597164154053,0.298582077026 
],
                maxResolution: 156543.0,
                units: 'm',
                numZoomLevels: 19
            };
            this.map = new OpenLayers.Map(this.id, options);

            var layer = new OpenLayers.Layer.WMS("wms",
                "http://localhost:2280/tiles/tilecache.py", {
            		layers: "wms",
            		format: "image/png",
            		"sphericalMercator": true
                 }
	        );

            this.map.addLayer(layer);
            this.map.zoomToMaxExtent();

- - - - - - - - - - - - -

type=Mapnik
debug=on
mapfile=/home/christoph/mapnik/malstube/map.xml
bbox=923284,5940116,1164513,6148046
resolutions 
= 
156543.0,78271.5,39135.75,19567.875,9783.9375,4891.96875,2445.984375,1222.9921875,611.49609375,305.748046875,152.874023438,76.4370117188,38.2185058594,19.1092529297,9.55462646484,4.77731323242,2.38865661621,1.19432830811,0.597164154053,0.298582077026
maxResolution=156543.0
srs=EPSG:900913
spherical_mercator=true
metaTile=yes


Thank you for your help!
Christoph



More information about the Tilecache mailing list