Hi Riccardo, did you configure CQL_FILTER in the "Parameters filter" in the Tile Caching section of the layer? GWC creates different caches only when you properly configure those.
Some documentation is here: https://docs.geoserver.org/latest/en/user/geowebcache/using.html#supported-parameter-filters Mauro Il giorno lun 6 mag 2019 alle ore 10:11 Riccardo Mari <[email protected]> ha scritto: > Hi list, > i have a problem with CQL_FILTER on "gwc/service/wms" layer. > > According to > https://docs.geoserver.org/stable/en/user/geowebcache/using.html#supported-parameter-filters > CQL_FILTER is supported also in gwc layer. > > I have also set up Enable direct integration with GeoServer WMS in Caching > Defaults. > > If i make the request with standard wms all work fine: > > > https://geoportale.lamma.rete.toscana.it/geoserver_sar/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng8&TRANSPARENT=true&LAYERS=sar_rt%3Aps_interf_a_giglio&SRS=EPSG%3A3857&CRS=EPSG%3A3857&TILED=true&CQL_FILTER=(%22vel%22%20%3D%20%270.3%27)&WIDTH=256&HEIGHT=256&BBOX=1213208.5129423179%2C5209947.847917613%2C1218100.4827525693%2C5214839.817727864 > > > but if i make the same request to gwc the filter doesn't work: > > > > https://geoportale.lamma.rete.toscana.it/geoserver_sar/gwc/service/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng8&TRANSPARENT=true&LAYERS=sar_rt%3Aps_interf_a_giglio&SRS=EPSG%3A3857&CRS=EPSG%3A3857&TILED=true&CQL_FILTER=(%22vel%22%20%3D%20%270.3%27)&WIDTH=256&HEIGHT=256&BBOX=1213208.5129423179%2C5209947.847917613%2C1218100.4827525693%2C5214839.817727864 > > Is the operation correct or is there something wrong with the filter > parameters? > > Many thanks in advance, Riccardo. > > > This is my geoserver instance: > > Build Information > GeoServer Version > 2.14.3 > Git Revision > a700a48f014f8051f98e2f3a2f9e8190e9df1c79 > Build Date > 20-Mar-2019 19:00 > GeoTools Version > 20.3 (rev c132dedeae6c497eb0f4d2603618989cc8745cd5) > GeoWebCache Version > 1.14.3 (rev 1.14.x/b0c915b3107d92ef29eb7ce9143f33fc60b9c470) > > _______________________________________________ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to > this list: > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- Regards, Mauro Bartolomeoli == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Dott. Mauro Bartolomeoli @mauro_bart Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) Italy mobile: +39 393 904 1756 phone: +39 0584 962313 fax: +39 0584 1660272 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.
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
