I use the CQL_FILTER= with multiple layers. For Example, layers=BASE:Countries,BASE:States_Provinces&styles=&CQL_FILTER=INCLUDE;Name='SomeProvinceName'
If you don't want to restrict a layer result set, use the INCLUDE filter. Or the EXCLUDE if you want to remove it completely. The filters themselves can be built up to more complexity CQL_FILTER=(MyAttribute='Value1' and MyOtherValue='Value2') or MyThirdAttribute='Value3' Chris Snider Senior Software Engineer Intelligent Software Solutions, Inc. [Description: Description: Description: cid:[email protected]] From: carlo cancellieri [mailto:[email protected]] Sent: Friday, March 28, 2014 6:31 AM To: Aleksander Vines Cc: [email protected] Subject: Re: [Geoserver-users] specify a filter for each layer in a GetFeatureInfo request Aleksander, I've never used them anyhow have you tried with commas? filter=(FILTER),(FILTER),... Let me know, we can take a look at the code if needed. Cheers, Carlo 2014-03-28 12:34 GMT+01:00 Aleksander Vines <[email protected]<mailto:[email protected]>>: Hi list, according to the documentation at http://docs.geoserver.org/stable/en/user/services/wms/vendor.html#filter : "If more than one layer is specified in the layers parameter then a separate filter can be specified for each layer." But it does not say how I can do this, on cql_filter, each filter can be seperated by ';' but it does not work like that for the filter. It further says that the filter can contain a list of several filters, enclosed in parentheses, but it seemingly has nothing to do with one filter for each layer. I've been trying several forms (yes the final requests are url-encoded): filter=(filterForFirstLayer;filterForSecondLayer) filter=(filterForFirstLayer);(filterForSecondLayer) filter=filterForFirstLayer;filterForSecondLayer I'm sure the solution is easy but I can't seem to find it. Thanks, Aleksander Vines ------------------------------------------------------------------------------ _______________________________________________ Geoserver-users mailing list [email protected]<mailto:[email protected]> https://lists.sourceforge.net/lists/listinfo/geoserver-users -- == Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK for more information. == Dott. Carlo Cancellieri @cancellieric Software Engineer GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 http://www.geo-solutions.it<http://www.geo-solutions.it/> http://twitter.com/geosolutions_it -------------------------------------------------------
<<inline: image001.png>>
------------------------------------------------------------------------------
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
