Converts a spatial predicate and a reference geometry into an ECQL
expression suitable for use in a WFS GetFeature request.
spatial_cql(x, layer, predicate)A character string containing a spatial ECQL filter.
An sf or sfc
character giving the WFS layer name.
A spatial predicate object created by predicate helpers.
This function is an internal helper used by get_wfs() to translate
spatial predicate objects (see spatial_predicates) into ECQL syntax understood by the WFS server.
Users should not call this function directly.