Constructs a spatial ECQL BBOX expression from a reference geometry.
bbox_cql(x, geom_name, crs)A character string containing a BBOX ECQL filter.
An sf object providing the reference geometry.
Character string giving the geometry attribute name of the WFS layer.
A CRS definition (as accepted by sf::st_crs()) corresponding
to the WFS layer.
The bounding box is computed from the geometry provided in x, after
transforming it to the CRS of the target WFS layer. If the layer CRS has
a valid EPSG code, it is included in the ECQL expression.
This function is an internal helper used by spatial_cql() and should
not be called directly by users.
spatial_cql()