So I have an Image Mosaic Coverage store for the whole country, from this I
have published 2 layers with restricted bounding boxes - A & B in this
image:

[image: tiles.png]

These are distinct layers and when requested in QGIS they only display what
is in the declared native bounding box.

When I place the two layers in a Layer Group so I only need to add one
layer in QGIS, the declared bounds are ignored and data for the whole of
the layer group bounds is returned (possibly in both layers?)

What I expected GeoServer to do was extract the required data from Layer A
and a Layer B draw it as a single image and return it to QGIS with nothing
in between the two layers.

This is all vanilla GeoServer with no GeoFence added (though I have thought
of trying that next).

Ian

On Thu, 25 Feb 2021 at 15:08, Andrea Aime <[email protected]>
wrote:

> On Thu, Feb 25, 2021 at 3:51 PM Ian Turton <[email protected]> wrote:
>
>> But each individual layer is correctly defined with a bounding box and
>> doesn't display anything outside it's bounds.
>>
>
> I really don't understand how this is possible, in a WMS request.
> I just took a 2.18.x, the sf:dem layer, restricted its declared bounding
> box, and it did nothing to the layer preview,
> it's still showing the entire layer. As expected, the bbox I see there is
> purely informative, GetMap ignores it and
> grabs all data available.
>
> I believe we need a bit more of explanation, seems like you're hitting an
> odd behavior in the "two separate layers" case to me (they look like the
> same map, I don't know how you made them display only part of it):
>
>    - What is the coverage store?
>    - Are these two separate raster sources in the same store (e..g, two
>    raster layers in a geopackage)
>    - Or is this "magical" bbox restriction enforced via some other
>    mechanism, like GeoFence?
>
> Generally speaking, I'm not aware of any clever bit merging two layers
> coming from the same source.
>
> 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 di Montramito 3/A 55054 Massarosa
> (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549
> http://www.geo-solutions.it http://twitter.com/geosolutions_it
> ------------------------------------------------------- *Con riferimento
> alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
> Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
> circostanza inerente alla presente email (il suo contenuto, gli eventuali
> allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
> destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
> errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
> sarei comunque grato se potesse darmene notizia. This email is intended
> only for the person or entity to which it is addressed and may contain
> information that is privileged, confidential or otherwise protected from
> disclosure. We remind that - as provided by European Regulation 2016/679
> “GDPR” - copying, dissemination or use of this e-mail or the information
> herein by anyone other than the intended recipient is prohibited. If you
> have received this email by mistake, please notify us immediately by
> telephone or e-mail.*
>


-- 
Ian Turton
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to