[Tilecache] An error occurred: Current x value ... is too far
from tile corner x ...
Guillaume Sueur
no-reply at neogeo-online.net
Mon Nov 16 12:31:38 EST 2009
try with
extent_type=loose
in your layer settings
hope that helps
Guillaume
Le lundi 16 novembre 2009 à 18:27 +0100, Christoph Lingg a écrit :
> Thank you very much for your help, Dane!
>
> Unfortunately I still get the same error:
> > An error occurred: Current x value 1050475.187500 is too far from
> tile corner x 1051768.941264
>
> Maybe it is because of my chosen bbox? Do I have to consider certain
> intervals or can I set it like I want?
>
> The other possibility I see is the projection. As I had problems, I
> chose the projection and settings that were exposed here in this
> working example:
> http://www.mail-archive.com/mapnik-users@lists.berlios.de/msg01550.html
>
> Does someone know where those errors come from and where i can search
> for more informations?
>
> Thanks,
> Christoph
>
> Am 15.11.2009 um 03:11 schrieb Dane Springmeyer:
>
> > 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
>
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
>
More information about the Tilecache
mailing list