cql_geom_predicates {VicmapR} | R Documentation |
CQL Geometry Predicates
Description
Functions to construct a CQL expression to be used
to filter results from vicmap_query()
.
See the geoserver CQL documentation for details.
The sf object is automatically simplified to a less complex sf object
to reduce the complexity of the Web Service call. Subsequent in-memory
filtering may be needed to achieve exact results.
Usage
EQUALS(geom)
DISJOINT(geom)
INTERSECTS(geom)
TOUCHES(geom)
CROSSES(geom)
WITHIN(geom)
CONTAINS(geom)
OVERLAPS(geom)
RELATE(geom, pattern)
BBOX(coords, crs = NULL)
DWITHIN(
geom,
distance,
units = c("meters", "feet", "statute miles", "nautical miles", "kilometers")
)
BEYOND(
geom,
distance,
units = c("meters", "feet", "statute miles", "nautical miles", "kilometers")
)
Arguments
geom |
an |
pattern |
spatial relationship specified by a DE-9IM matrix pattern.
A DE-9IM pattern is a string of length 9 specified using the characters
|
coords |
the coordinates of the bounding box as four-element numeric
vector |
crs |
(Optional) A numeric value or string containing an SRS code. If
|
distance |
numeric value for distance tolerance |
units |
units that distance is specified in. One of
|
Details
The code for these cql predicates was developed by the bcdata team: https://bcgov.github.io/bcdata/reference/cql_geom_predicates.html
Value
a CQL expression to be passed on to the WFS call