<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><tilecache-request@openlayers.org></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 <tilecache-request@openlayers.org><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> <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> <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> <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> <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> 1. An error occurred: Current x value ... is too far from tile<br> corner x ... (Christoph Lingg)<br> 2. Re: An error occurred: Current x value ... is too far from<br> 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 <<a ymailto="mailto:christoph@lingg.eu" href="/mc/compose?to=christoph@lingg.eu">christoph@lingg.eu</a>><br>Subject: [Tilecache] An error occurred:
Current x value ... is too far<br> from 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: <<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>><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 <br>happy about being independent from proprietary solutions!<br><br>But we also have to hurdle some new difficulties, and one of them <br>seems to be a big challenge ;-) We are using the combination Mapnik, <br>TileCache and OpenLayers and I couldn't figure out how to
stick them <br>together properly! The tiles are not displayed, but the error message<br><br> > An error occurred: Current x value 1079827.000000 is too far from <br>tile corner x 1095796.660000<br><br>is shown. Can anybody give me a hint how to go on? My TileCache and <br>OpenLayers configs look like that:<br> <br> var options = {<br> projection: new OpenLayers.Projection("EPSG:900913"),<br> displayProjection: new OpenLayers.Projection("EPSG: <br>4326"),<br> maxExtent: new OpenLayers.Bounds <br>(923284,5940116,1164513,6148046),<br> resolutions:
<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> maxResolution: 156543.0,<br> units: 'm',<br> numZoomLevels: 19<br> };<br> this.map = new OpenLayers.Map(this.id, options);<br><br> var layer = new OpenLayers.Layer.WMS("wms",<br> "<a href="http://localhost:2280/tiles/tilecache.py" target="_blank">http://localhost:2280/tiles/tilecache.py</a>", {<br>
layers: "wms",<br> format: "image/png",<br> "sphericalMercator": true<br> }<br> );<br><br> this.map.addLayer(layer);<br> 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 <<a ymailto="mailto:blake@hailmail.net" href="/mc/compose?to=blake@hailmail.net">blake@hailmail.net</a>><br>Subject: Re: [Tilecache] An error occurred: Current x value ... is too<br> far from tile corner x ...<br>To: Christoph Lingg <<a ymailto="mailto:christoph@lingg.eu" href="/mc/compose?to=christoph@lingg.eu">christoph@lingg.eu</a>><br>Cc: <a ymailto="mailto:tilecache@openlayers.org"
href="/mc/compose?to=tilecache@openlayers.org">tilecache@openlayers.org</a><br>Message-ID: <<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>><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 <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>> (I think my last mail hasn't worked without registration, here <br>> again: )<br>><br>> Hello everybody,<br>><br>> our project just changed from GoogleMaps to OpenLayers and we are<br>> happy about being independent from proprietary
solutions!<br>><br>> But we also have to hurdle some new difficulties, and one of them<br>> seems to be a big challenge ;-) We are using the combination Mapnik,<br>> TileCache and OpenLayers and I couldn't figure out how to stick them<br>> together properly! The tiles are not displayed, but the error message<br>><br>>> An error occurred: Current x value 1079827.000000 is too far from<br>> tile corner x 1095796.660000<br>><br>> is shown. Can anybody give me a hint how to go on? My TileCache and<br>> OpenLayers configs look like that:<br>> <br>> var options = {<br>> projection: new OpenLayers.Projection("EPSG:900913"),<br>> displayProjection: new OpenLayers.Projection("EPSG:<br>> 4326"),<br>>
maxExtent: new OpenLayers.Bounds<br>> (923284,5940116,1164513,6148046),<br>> resolutions:<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>> maxResolution: 156543.0,<br>> units: 'm',<br>> numZoomLevels: 19<br>> };<br>> this.map = new OpenLayers.Map(this.id, options);<br>><br>> var layer = new OpenLayers.Layer.WMS("wms",<br>>
"<a href="http://localhost:2280/tiles/tilecache.py" target="_blank">http://localhost:2280/tiles/tilecache.py</a>", {<br>> layers: "wms",<br>> format: "image/png",<br>> "sphericalMercator": true<br>> }<br>> );<br>><br>> this.map.addLayer(layer);<br>> 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>> 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><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>