Re: [Geoserver-users] We used to send parameters to our WMS geoserver SQLViews by the viewparams field. But WMTS doesn't have this field

2018-12-16 Thread Andrea Aime
On Fri, Dec 14, 2018 at 12:17 AM mlebihan wrote: > And this is this ability given by the viewparams field to customize select > data selection that is now missing to me with WMTS protocol. > But it is not missing, and you already had the correct answer, you have to setup a parameter filter for

Re: [Geoserver-users] We used to send parameters to our WMS geoserver SQLViews by the viewparams field. But WMTS doesn't have this field

2018-12-13 Thread mlebihan
And you are absolutely right : in term of displaying map, continue to use viewparams in WMTS have no sense. But, at the same time the viewparams field were used to do so with the WMS protocol, Geoserver used it also to provide parameters the the SQLView used to choose what you want to select and

Re: [Geoserver-users] We used to send parameters to our WMS geoserver SQLViews by the viewparams field. But WMTS doesn't have this field

2018-12-13 Thread Ian Turton
It makes no sense to use a wmts service with variable parameters as the whole point of tiling is to allow you to cache the response. If everyone makes a different request each time there is no point in caching the tiles. Ian On Thu, 13 Dec 2018, 17:17 mlebihan My problem is that the url

Re: [Geoserver-users] We used to send parameters to our WMS geoserver SQLViews by the viewparams field. But WMTS doesn't have this field

2018-12-13 Thread mlebihan
My problem is that the url parameters send by the browser in viewparams and that are automatically split by geoserver in WMS mode and given to its SQL views that way : SELECT * FROM TABLE where a= ... AND b = ... (and may change each time the user do a call to that layer through his web browser.

Re: [Geoserver-users] We used to send parameters to our WMS geoserver SQLViews by the viewparams field. But WMTS doesn't have this field

2018-12-12 Thread Peter Smythe
Hi mlebihan I haven't tried this myself, but I expect it to work: In the Edit Layer page, select the Tile Caching tab. Towards the bottom, under Add filter, select VIEWPARAMS and a type. ref: https://docs.geoserver.org/latest/en/user/geowebcache/webadmin/layers.html#adding-a-filter Let us

[Geoserver-users] We used to send parameters to our WMS geoserver SQLViews by the viewparams field. But WMTS doesn't have this field

2018-12-12 Thread mlebihan
Hello, /Geoserver/ offers to use parametrized SQL views for WMS requests, and this is very convenient. On our web side, for the WMS request, the parameters are put in a /viewparams /field and then on /Geoserver/ side they