[OpenLayers-Users] Geoserver GWC layers plotting offset at some zoom levels.

Andrea Aime andrea.aime at geo-solutions.it
Mon Jul 6 23:05:12 PDT 2015


On Tue, Jul 7, 2015 at 6:21 AM, Phil Scadden <p.scadden at gns.cri.nz> wrote:

> 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
> https://github.com/openlayers/openlayers/issues/688 is still open. I am
> not doing any pre-seeding. Problem only occurs at some zoom levels.
> A request looks like:
>
>
> 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
>
> Note the EPSG:3857 - the tileset in GWC is 900913 but I am guessing the
> equivalence is handled.
>
> Is this still the maxextent playing badly?
>

That is still your starting point, if the maxentent of the server and
client are not aligning, some requests will fall
off the grid.

If I may share my 2 cents, the arrangement of asking tiles thought the WMS
protocol is not the best one, the client
should go for the WMTS capabilities, check the gridset definitions, abide
to them, and then make x/y/z requests.

The WMS with direct integration was made under the notion of "most clients
will ask data along well known gridsets
anyways, so let's try to use the cache when possible", that is,
opportunistic speedup.
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
force it to the cached ones... which might be the reason of your
mis-alignment

In case of doubts, try the GWC internal preview, it's using WMS but with
well aligned gridsets, do you also get
the misalignments there?

Cheers
Andrea

-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

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.



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.

-------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20150707/c348efde/attachment.html>


More information about the Users mailing list