Geoserver
offers to use parametrized SQL views. Parameters are put in a viewparams field and it receives them as parameters for the SQL request.
However, we discovered that tiled WMS (WMTS) doesn't have that viewparams field.
How can we send our parameters ?
Regards,
I discovered that WMTS
layers have for target to be cached by tools/components like GeoWebCache
, while WMS
ones are always ran by the geoserver
.
A WMTS
layer can be called in WMS
mode, and then :
If you need to use a parameter, put it in the SQL view, and call the layer with a WMS
request, with the viewparams
parameter,
If you do not need to use a parameter, call it through WMTS
and then futher calls might benefits from the contents being recovered from cache.