<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jul 7, 2015 at 6:21 AM, Phil Scadden <span dir="ltr"><<a href="mailto:p.scadden@gns.cri.nz" target="_blank">p.scadden@gns.cri.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have GWC tile caching turned on for a layer in geoserver 2.7.1.1 (direct integration turned on), then at some zoom levels, it plots displaced from where it should be. Turn GWC off for the layer, refresh browser, and it plots okay. This when calling as WMS layer from Openlayer 2.13-1 master. I remember this being an issue back in 2012 and issue <a href="https://github.com/openlayers/openlayers/issues/688" rel="noreferrer" target="_blank">https://github.com/openlayers/openlayers/issues/688</a> is still open. I am not doing any pre-seeding. Problem only occurs at some zoom levels.<br>
A request looks like:<br>
<br>
<a href="http://myserver/wms?LAYERS=mylayer&TILED=true&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fpng&SRS=EPSG:3857&BBOX=18628621.034844,-6521221.593125,18785164.06875,-6364678.5592188&WIDTH=256&HEIGHT=256" rel="noreferrer" target="_blank">http://myserver/wms?LAYERS=mylayer&TILED=true&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fpng&SRS=EPSG:3857&BBOX=18628621.034844,-6521221.593125,18785164.06875,-6364678.5592188&WIDTH=256&HEIGHT=256</a><br>
<br>
Note the EPSG:3857 - the tileset in GWC is 900913 but I am guessing the equivalence is handled.<br>
<br>
Is this still the maxextent playing badly?<br></blockquote><div><br></div><div>That is still your starting point, if the maxentent of the server and client are not aligning, some requests will fall</div><div>off the grid.</div><div><br></div><div>If I may share my 2 cents, the arrangement of asking tiles thought the WMS protocol is not the best one, the client</div><div>should go for the WMTS capabilities, check the gridset definitions, abide to them, and then make x/y/z requests.</div><div><br></div><div>The WMS with direct integration was made under the notion of "most clients will ask data along well known gridsets</div><div>anyways, so let's try to use the cache when possible", that is, opportunistic speedup. </div><div>The thing is, GWC has a bit of tolerance, if you ask for a tile that's slightly off the actual cached tile extents, it will</div><div>force it to the cached ones... which might be the reason of your mis-alignment</div><div><br></div><div>In case of doubts, try the GWC internal preview, it's using WMS but with well aligned gridsets, do you also get</div><div>the misalignments there?</div><div><br></div><div>Cheers</div><div>Andrea</div><div> </div></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div><div>==</div><div>GeoServer Professional Services from the experts! Visit</div><div><a href="http://goo.gl/it488V" target="_blank">http://goo.gl/it488V</a> for more information.</div><div><span style="font-size:12.8000001907349px">==</span><br></div></div><div><br></div></div><div>Ing. Andrea Aime <br></div><div>@geowolf</div><div>Technical Lead</div><div><br></div><div>GeoSolutions S.A.S.</div><div>Via Poggio alle Viti 1187</div><div>55054  Massarosa (LU)</div><div>Italy</div><div>phone: +39 0584 962313</div><div>fax: +39 0584 1660272</div><div>mob: +39  339 8844549</div><div><br></div><div><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a></div><div><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a></div><div><br></div><div><p><span lang="IT"><font size="1"><b>AVVERTENZE AI SENSI DEL D.Lgs. 196/2003</b></font></span></p><p><span lang="IT"><font size="1">Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.</font></span></p><p><span lang="IT"><font size="1"> </font></span></p><p><font size="1">The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility  for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.</font></p></div><div><br></div><div>-------------------------------------------------------</div></div></div></div></div></div></div></div></div>
</div></div>