|
From: geomatick <co...@ge...> - 2018-04-09 11:07:16
|
Hi, I have a sql view layer with one parameter x. I would like to pass some variable in GWC url like in wms url with viewparams: wms url : http://localhost/geoserver/cadastre/wms?service=WMS&version=1.1.0&request=GetMap&layers=workspace:layer&viewparams=x:variable... gwc wmts url : http://localhost/geoserver/gwc/service/wmts?layer=workspace:layer&tilematrixset=EPSG:900913&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image/png&TileMatrix=EPSG:900913:...&TileCol=...&TileRow=... I read it's possible with gwc configuration : https://stackoverflow.com/questions/11558704/geowebcache-with-viewparam-for-wms-layer And I read it's possible too adding filter to layer caching :https://gis.stackexchange.com/questions/234382/geoserver-caching-with-sql-view/234482#234482 I tried the 2 solutions without success and I think the second one adding filter is better but I don't show any result. I add the filter x as parameter x in caching layer. The filter box appear like style but when i write some variable in x box, nothing works. What should it be the result? the entity selected would appear alone in map? How could I pass this variable in gwc URL? Thanks for your return. Florian D. So, -- Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html |