Is it possible to dynamically change the content of an OGC WFS filter based on the BBOX of an incoming WMS request? I am attempting to serve the response of a WFS which require that I use an OGC filter on each request for the desired result.
A consequence of this is that the BBOX of the WFS request must be contained within the filter as well.
Filtering client side is not possible in this case because 1) the dataset is very large and 2) the filter parameters materially affect the ouptut.
I apologize that I cannot provide sources to the actual data. Ultimately, I need to somehow translate a standard WMS request into an appropriate WFS request. For example, if this is requested by the client:
The below Layer definiton, with the BBOX hard coded as part of the wfs_filter metadata the Mapfile, produces the correct result. But can I pass the WMS BBOX into the wfs_filter BBOX tag with each request?
LAYER DEBUG 3 NAME "DigitalGlobe_WFS" TYPE POLYGON STATUS DEFAULT EXTENT -180 -90 180 90 PROJECTION "init=epsg:4326" END UNITS DD MAXSCALE 144000 CONNECTIONTYPE WFS CONNECTION "https://placeholderservice.com/wfsaccess? METADATA "wfs_typename" "WFS_Test" "wfs_version" "1.0.0" "wfs_request_method" "POST" "wfs_connectiontimeout" "60" "wfs_maxfeatures" "50" "wfs_geometryname" "geometry" "wfs_filter" "<And>gml:Box><gml:coordinates>-104.25,39.00 -104.00,39.25</gml:coordinates></gml:Box></BBOX><PropertyIsEqualTo><PropertyName>source</PropertyName><Literal>NEW</Literal></PropertyIsEqualTo></And></Filter> END