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

Dane Springmeyer blake at hailmail.net
Sat Nov 14 21:11:40 EST 2009


Try putting:

projection= +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0  
+x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over

or

projection= +init=epsg:900913

in your tilecache.cfg

Dane

On Nov 14, 2009, at 10:19 AM, Christoph Lingg wrote:

> (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
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache




More information about the Tilecache mailing list