90 likes | 223 Views
The Filter Encoding Standard (FES) allows users to create XML filter expressions for WFS layers, integrated within the CCSS Geoportal via OWSProxy. To filter a WFS layer, simply right-click the layer name in the layer switcher and select "Filter". A filter window will appear, enabling the selection of property names, comparison operators, and desired values. This process involves sending a WFS.GetCapabilities request, parsing the capabilities document, and retrieving filtered layers for display as WMS in the client. Future implementations will enhance filtering support and options.
E N D
Filter Encoding Standard enables you to create XML filter expressions and is incorporated in the WFS standard. In CCSS Geoportal the FES is used with the help of OWSProxy to filter the WFS layers. FES - Filter Encoding SpecificationFiltering WFS Layers in CCSS Geoportal
How to use it • - Add a WFS Layer • - In the layer switcher, right-click on the layer name and select “Filter”
- Filter window appears with comparison filter - Select the property name, comparison operator and type in the desired value - Apply the filter How to use it
WFS layers are displayed as WMS in the HSLayers Web Client (see OWSProxy for details). 1. WFS GetCapabilities request is sent directly to the WFS server. Capabilities document is parsed, especially the <Filter_Capabilities> section. 2. WFS DescribeFeatureTypes is sent to get the properties of the WFS features. 3. User creates the filter in the GUI How does it work
4. New WMS request is sent to OWSProxy, accompanied with FES filter in an additional parameter. 5. OWSProxy takes the filter, creates WFS request and sends it to the WFS server. Server replies with filtered layer. 6. OWSProxy transforms the returned WFS layer to WMS and sends it to the client. How does it work
So far, only FES 1.1.0 has been implemented in terms of standards and only the comparison filter is supported in the GUI. As next steps, the implementation of FES 1.0.0 is foreseen as well as additional support for time. In the GUI, more filters can be added. That means the logical filter enabling to combine various expressions, spatial filter, expression editor, filtering based on feature ids, support for server-side functions. Next Steps