The problem is with your coordinates - maxExtent: -20037497.21, -20037497.21,20037497.21, 20037497.21<div><br></div><div>For the higher zoom level, these coordinates are too far from the tile-corner (left-bottom). It works peacefully for the lower zoom levels. But, it will not work for the higher ones as it will have to tile numerous blank tiles. </div>
<div><br></div><div>I would recommend you to check the bbox and specify more accurate coordinates for tiling. </div><div><br></div><div>Regards,</div><div>Ritesh Ambastha<br><div><br></div><div><br><br><div class="gmail_quote">
On Thu, Oct 6, 2011 at 5:56 PM, DFE <span dir="ltr"><<a href="mailto:mimmopasticcio@gmail.com">mimmopasticcio@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello All,<br>
I'm getting the following error when I'm requesting tile only at<br>
highest resolutions, instead it works correctly for the lowest zoom<br>
levels.<br>
<br>
An error occurred: Current x value 1493284.913512 is too far from tile<br>
corner x 1493272.954920<br>
File "/var/www/tlc/TileCache/Service.py", line 256, in modPythonHandler<br>
host )<br>
File "/var/www/tlc/TileCache/Service.py", line 181, in dispatchRequest<br>
tile = WMS(self).parse(params, path_info, host)<br>
File "/var/www/tlc/TileCache/Services/WMS.py", line 19, in parse<br>
return self.getMap(param)<br>
File "/var/www/tlc/TileCache/Services/WMS.py", line 27, in getMap<br>
tile = self.getLayer(name).getTile(bbox)<br>
File "/var/www/tlc/TileCache/Layer.py", line 312, in getTile<br>
coord = self.getCell(bbox)<br>
File "/var/www/tlc/TileCache/Layer.py", line 287, in getCell<br>
raise TileCacheException("Current x value %f is too far from tile<br>
corner x %f" % (minx, tilex))<br>
<br>
<br>
<br>
I'm using OpenLayers 2.11:<br>
<br>
map = new OpenLayers.Map('map', { maxExtent: new<br>
OpenLayers.Bounds(-20037497.21, -20037497.21,20037497.21,<br>
20037497.21),<br>
projection: new OpenLayers.Projection("EPSG:3857"),<br>
resolutions:[156543.0339,78271.51695,39135.758475,4891.969809375,2445.9849046875,1222.99245234375,611.496226171875,305.7481130859375,152.87405654296876,76.43702827148438,38.21851413574219,19.109257067871095,9.554628533935547,4.777314266967774],<br>
units: "m"});<br>
var tlc_land = new OpenLayers.Layer.WMS("TileCacheMerc land",<br>
"http://"+window.location.host+"/tlc/tilecache.py",<br>
{format: 'image/png', layers:'land_merc'}<br>
);<br>
map.addLayer(tlc_land);<br>
<br>
and I'm usign TileCache 2.11 under FastCGI module of httpd:<br>
<br>
[land_merc]<br>
type=WMS<br>
url=<a href="http://localhost/cgi-bin/mapserv?map=/var/www/maps/main.map" target="_blank">http://localhost/cgi-bin/mapserv?map=/var/www/maps/main.map</a><br>
layers=land_merc<br>
extent_type=loose<br>
# spherical_mercator=true<br>
resolution=156543.0339,78271.51695,39135.758475,4891.969809375,2445.9849046875,1222.99245234375,611.496226171875,305.7481130859375,152.87405654296876,76.43702827148438,38.21851413574219,19.109257067871095,9.554628533935547,4.777314266967774<br>
bbox=-20037497.21, -20037497.21,20037497.21, 20037497.21<br>
srs=EPSG:3857<br>
tms_type=google<br>
<br>
Of course the direct WMS calls to mapserver is working correctly.<br>
<br>
Do you have any suggestion?<br>
Thanks in advance.<br>
<br>
domenico febbo.<br>
_______________________________________________<br>
Tilecache mailing list<br>
<a href="mailto:Tilecache@lists.osgeo.org">Tilecache@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/tilecache" target="_blank">http://lists.osgeo.org/mailman/listinfo/tilecache</a><br>
</blockquote></div><br></div></div>