Write a CQL expression to escape its inputs, and return a CQL/SQL object. Used when writing filter expressions in vicmap_query().

CQL(...)

Arguments

...

Character vectors that will be combined into a single CQL statement.

Value

An object of class c("CQL", "SQL")

Details

See the CQL/ECQL for Geoserver website.

The code for cql escaping was developed by the bcdata team: https://bcgov.github.io/bcdata/reference/cql_geom_predicates.html

Examples

CQL("FOO > 12 & NAME LIKE 'A&'")
#> <SQL> FOO > 12 & NAME LIKE 'A&'