Hello,<div><br></div><div>I've got a peculiar problem.</div><div><br></div><div>I have two tilecache services running on two separate machines. Let's call them LIVE and SEED.</div><div><br></div><div>LIVE is in an active production environment delivering tiles to our clients and works without a hitch.</div>
<div>SEED is an machine I have in-house on which I generate caches for LIVE.</div><div><br></div><div><div>LIVE is running:</div><div><ul><li>Ubuntu Server 8.04. LTS</li><li>Apache 2.2</li><li>Python 2.5.2</li><li>Tilecache 2.11 running under mod_wsgi</li>
</ul></div><div>SEED is running:</div><div><ul><li>Ubuntu Server 10.10</li><li>Apache 2.2</li><li>Python 2.6.6</li><li>Tilecache 2.11 running under mod_wsgi</li></ul></div></div><div><br></div><div>I've been accessing TileCache from OpenLayers using TMS requests for a while and it seems to work fine - but if I try WMS requests I run into a problem.</div>
<div><br></div><div>Here is a an overview of what I'm facing, the following are snips from the same OpenLayers client:</div><div><a href="http://i.imgur.com/K58Qu.jpg" target="_blank">Live WMS</a> - ok</div><div><a href="http://i.imgur.com/nbnMA.png" target="_blank">Seed TMS</a> - ok </div>
<div><a href="http://i.imgur.com/z3QdR.png" target="_blank">Seed WMS</a> - not ok</div><div><br></div><div><a href="http://pastebin.com/KN74QT2Y">Here are the configs for these layers.</a></div><div><br></div><div>If I inspect one of those missing Seed WMS tiles at the following URL (split up for readability):</div>
<div><font class="Apple-style-span" face="'courier new', monospace"><a href="http://SEED/tc/tilecache.py">http://SEED/tc/tilecache.py</a></font></div><div><font class="Apple-style-span" face="'courier new', monospace">?LAYERS=SEED</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">&FORMAT=image/jpeg</font></div><div><font class="Apple-style-span" face="'courier new', monospace">&SERVICE=WMS</font></div><div>
<font class="Apple-style-span" face="'courier new', monospace">&VERSION=1.1.1</font></div><div><font class="Apple-style-span" face="'courier new', monospace">&REQUEST=GetMap</font></div><div><font class="Apple-style-span" face="'courier new', monospace">&STYLES=</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">&EXCEPTIONS=application/vnd.ogc.se_inimage</font></div><div><font class="Apple-style-span" face="'courier new', monospace">&SRS=EPSG:3057</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">&BBOX=<b>296528.80598333,408528.80598333</b>,450057.61196667,562057.61196667</font></div><div><font class="Apple-style-span" face="'courier new', monospace">&WIDTH=256</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">&HEIGHT=256</font></div><div><span class="Apple-style-span" style="font-family: 'courier new', monospace; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', monospace; "><span class="Apple-style-span" style="font-family: arial; ">I get the following:</span></span></div>
<div><span class="Apple-style-span" style="font-family: 'courier new', monospace; "><span class="Apple-style-span" style="font-family: arial; "></span>An error occurred: Current x value 296528.805983 is too far from tile corner x 143000.000000</span></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font><div>These same coordinates work fine against LIVE - and if I take the x value and round it up I get</div><font class="Apple-style-span" face="'courier new', monospace">An error occurred: Current y value 408528.805983 is too far from tile corner y 255000.000000</font><div>
<br></div><div>If I round the y value also ending up with:</div><div>BBOX=<b>296529,408529</b>,450057.61196667,562057.61196667</div><div><br></div><div>I suddenly get the correct image.</div><div><br></div><div>So what that tells me, unless I'm missing something (which I guess I must be), is that LIVE and SEED are not handling the coordinates the same way on SOME tiles.</div>
<div>Which makes no sense what-so-ever. </div><div><br></div><div>Anybody have any ideas?</div><div><ul>
</ul>-- <br>Gissur Þórhallsson<br><br>Loftmyndir ehf.<br>Laugavegur 13<br>IS 101 Reykjavík - Iceland<br>sími (tel): (+354) 540 2500<br>tölvupóstur (email): <a href="mailto:gissur@loftmyndir.is" target="_blank">gissur@loftmyndir.is</a><br>
</div>
</div>