Learn R Programming

happign (version 0.3.8)

bbox_cql: Build a BBOX ECQL filter

Description

Constructs a spatial ECQL BBOX expression from a reference geometry.

Usage

bbox_cql(x, geom_name, crs)

Value

A character string containing a BBOX ECQL filter.

Arguments

x

An sf object providing the reference geometry.

geom_name

Character string giving the geometry attribute name of the WFS layer.

crs

A CRS definition (as accepted by sf::st_crs()) corresponding to the WFS layer.

Details

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.

See Also

spatial_cql()