<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>Please use extent_type=loose. That solved my problem.<br><br><div><div><div><div><div><div><div><div><div><strong></strong><font size="2"><span style="font-family: verdana,helvetica,sans-serif;">Thanks,</span><br style="font-family: verdana,helvetica,sans-serif;"><span style="font-family: verdana,helvetica,sans-serif;">Rahul G. Teni<br>Cynosure Software Solutions<br style="font-family: verdana,helvetica,sans-serif;"></span><span style="font-family: verdana,helvetica,sans-serif;">MS BITS,BE Comp</span><br style="font-family: verdana,helvetica,sans-serif;"><span style="font-family: verdana,helvetica,sans-serif;"></span></font><br></div></div></div></div></div></div></div></div></div><br><br>--- On <b>Sun, 11/15/09, tilecache-request@openlayers.org <i>&lt;tilecache-request@openlayers.org&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid
 rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: tilecache-request@openlayers.org &lt;tilecache-request@openlayers.org&gt;<br>Subject: Tilecache Digest, Vol 34, Issue 10<br>To: tilecache@openlayers.org<br>Date: Sunday, November 15, 2009, 10:30 PM<br><br><div class="plainMail">Send Tilecache mailing list submissions to<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:tilecache@openlayers.org" href="/mc/compose?to=tilecache@openlayers.org">tilecache@openlayers.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>&nbsp;&nbsp;&nbsp; <a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>or, via email, send a message with subject or body 'help' to<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:tilecache-request@openlayers.org" href="/mc/compose?to=tilecache-request@openlayers.org">tilecache-request@openlayers.org</a><br><br>You can reach the person managing
 the list at<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:tilecache-owner@openlayers.org" href="/mc/compose?to=tilecache-owner@openlayers.org">tilecache-owner@openlayers.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Tilecache digest..."<br><br><br>Today's Topics:<br><br>&nbsp;&nbsp;&nbsp;1. An error occurred: Current x value ... is too far from&nbsp;&nbsp;&nbsp; tile<br>&nbsp; &nbsp; &nbsp; corner x ... (Christoph Lingg)<br>&nbsp;&nbsp;&nbsp;2. Re: An error occurred: Current x value ... is too far&nbsp;&nbsp;&nbsp; from<br>&nbsp; &nbsp; &nbsp; tile corner x ... (Dane Springmeyer)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Sat, 14 Nov 2009 19:19:25 +0100<br>From: Christoph Lingg &lt;<a ymailto="mailto:christoph@lingg.eu" href="/mc/compose?to=christoph@lingg.eu">christoph@lingg.eu</a>&gt;<br>Subject: [Tilecache] An error occurred:
 Current x value ... is too far<br>&nbsp;&nbsp;&nbsp; from&nbsp;&nbsp;&nbsp; tile corner x ...<br>To: <a ymailto="mailto:tilecache@openlayers.org" href="/mc/compose?to=tilecache@openlayers.org">tilecache@openlayers.org</a><br>Message-ID: &lt;<a ymailto="mailto:7F190557-B4DB-4625-A63E-70D15840B68D@lingg.eu" href="/mc/compose?to=7F190557-B4DB-4625-A63E-70D15840B68D@lingg.eu">7F190557-B4DB-4625-A63E-70D15840B68D@lingg.eu</a>&gt;<br>Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes<br><br>(I think my last mail hasn't worked without registration, here again: )<br><br>Hello everybody,<br><br>our project just changed from GoogleMaps to OpenLayers and we are&nbsp; <br>happy about being independent from proprietary solutions!<br><br>But we also have to hurdle some new difficulties, and one of them&nbsp; <br>seems to be a big challenge ;-) We are using the combination Mapnik,&nbsp; <br>TileCache and OpenLayers and I couldn't figure out how to
 stick them&nbsp; <br>together properly! The tiles are not displayed, but the error message<br><br> &gt; An error occurred: Current x value 1079827.000000 is too far from&nbsp; <br>tile corner x 1095796.660000<br><br>is shown. Can anybody give me a hint how to go on? My TileCache and&nbsp; <br>OpenLayers configs look like that:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var options = {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; projection: new OpenLayers.Projection("EPSG:900913"),<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; displayProjection: new OpenLayers.Projection("EPSG: <br>4326"),<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; maxExtent: new OpenLayers.Bounds <br>(923284,5940116,1164513,6148046),<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resolutions:&nbsp;
 <br>[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 <br>],<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; maxResolution: 156543.0,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; units: 'm',<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; numZoomLevels: 19<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.map = new OpenLayers.Map(this.id, options);<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var layer = new OpenLayers.Layer.WMS("wms",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "<a href="http://localhost:2280/tiles/tilecache.py" target="_blank">http://localhost:2280/tiles/tilecache.py</a>", {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; layers: "wms",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; format: "image/png",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "sphericalMercator": true<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.map.addLayer(layer);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.map.zoomToMaxExtent();<br><br>- - - - - - - - - - - - -<br><br>type=Mapnik<br>debug=on<br>mapfile=/home/christoph/mapnik/malstube/map.xml<br>bbox=923284,5940116,1164513,6148046<br>resolutions <br>=
 <br>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<br>maxResolution=156543.0<br>srs=EPSG:900913<br>spherical_mercator=true<br>metaTile=yes<br><br><br>Thank you for your help!<br>Christoph<br><br><br>------------------------------<br><br>Message: 2<br>Date: Sat, 14 Nov 2009 18:11:40 -0800<br>From: Dane Springmeyer &lt;<a ymailto="mailto:blake@hailmail.net" href="/mc/compose?to=blake@hailmail.net">blake@hailmail.net</a>&gt;<br>Subject: Re: [Tilecache] An error occurred: Current x value ... is too<br>&nbsp;&nbsp;&nbsp; far&nbsp;&nbsp;&nbsp; from tile corner x ...<br>To: Christoph Lingg &lt;<a ymailto="mailto:christoph@lingg.eu" href="/mc/compose?to=christoph@lingg.eu">christoph@lingg.eu</a>&gt;<br>Cc: <a ymailto="mailto:tilecache@openlayers.org"
 href="/mc/compose?to=tilecache@openlayers.org">tilecache@openlayers.org</a><br>Message-ID: &lt;<a ymailto="mailto:A4D1956E-93D7-42E5-A638-F4745C8F26B3@hailmail.net" href="/mc/compose?to=A4D1956E-93D7-42E5-A638-F4745C8F26B3@hailmail.net">A4D1956E-93D7-42E5-A638-F4745C8F26B3@hailmail.net</a>&gt;<br>Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes<br><br>Try putting:<br><br>projection= +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0&nbsp; <br>+x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over<br><br>or<br><br>projection= +init=epsg:900913<br><br>in your tilecache.cfg<br><br>Dane<br><br>On Nov 14, 2009, at 10:19 AM, Christoph Lingg wrote:<br><br>&gt; (I think my last mail hasn't worked without registration, here&nbsp; <br>&gt; again: )<br>&gt;<br>&gt; Hello everybody,<br>&gt;<br>&gt; our project just changed from GoogleMaps to OpenLayers and we are<br>&gt; happy about being independent from proprietary
 solutions!<br>&gt;<br>&gt; But we also have to hurdle some new difficulties, and one of them<br>&gt; seems to be a big challenge ;-) We are using the combination Mapnik,<br>&gt; TileCache and OpenLayers and I couldn't figure out how to stick them<br>&gt; together properly! The tiles are not displayed, but the error message<br>&gt;<br>&gt;&gt; An error occurred: Current x value 1079827.000000 is too far from<br>&gt; tile corner x 1095796.660000<br>&gt;<br>&gt; is shown. Can anybody give me a hint how to go on? My TileCache and<br>&gt; OpenLayers configs look like that:<br>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var options = {<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; projection: new OpenLayers.Projection("EPSG:900913"),<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; displayProjection: new OpenLayers.Projection("EPSG:<br>&gt; 4326"),<br>&gt;&nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; maxExtent: new OpenLayers.Bounds<br>&gt; (923284,5940116,1164513,6148046),<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resolutions:<br>&gt; [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<br>&gt; ],<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; maxResolution: 156543.0,<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; units: 'm',<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; numZoomLevels: 19<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.map = new OpenLayers.Map(this.id, options);<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var layer = new OpenLayers.Layer.WMS("wms",<br>&gt;&nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "<a href="http://localhost:2280/tiles/tilecache.py" target="_blank">http://localhost:2280/tiles/tilecache.py</a>", {<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; layers: "wms",<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; format: "image/png",<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "sphericalMercator": true<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;}<br>&gt; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.map.addLayer(layer);<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.map.zoomToMaxExtent();<br>&gt;<br>&gt; - - - - - - - - - - - - -<br>&gt;<br>&gt; type=Mapnik<br>&gt; debug=on<br>&gt; mapfile=/home/christoph/mapnik/malstube/map.xml<br>&gt;
 bbox=923284,5940116,1164513,6148046<br>&gt; resolutions<br>&gt; =<br>&gt; 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<br>&gt; maxResolution=156543.0<br>&gt; srs=EPSG:900913<br>&gt; spherical_mercator=true<br>&gt; metaTile=yes<br>&gt;<br>&gt;<br>&gt; Thank you for your help!<br>&gt; Christoph<br>&gt; _______________________________________________<br>&gt; Tilecache mailing list<br>&gt; <a ymailto="mailto:Tilecache@openlayers.org" href="/mc/compose?to=Tilecache@openlayers.org">Tilecache@openlayers.org</a><br>&gt; <a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br><br><br><br>------------------------------<br><br>_______________________________________________<br>Tilecache
 mailing list<br><a ymailto="mailto:Tilecache@openlayers.org" href="/mc/compose?to=Tilecache@openlayers.org">Tilecache@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br><br><br>End of Tilecache Digest, Vol 34, Issue 10<br>*****************************************<br></div></blockquote></td></tr></table><br>