Learn R Programming

happign (version 0.3.8)

spatial_cql: Build a spatial ECQL filter

Description

Converts a spatial predicate and a reference geometry into an ECQL expression suitable for use in a WFS GetFeature request.

Usage

spatial_cql(x, layer, predicate)

Value

A character string containing a spatial ECQL filter.

Arguments

x

An sf or sfc

layer

character giving the WFS layer name.

predicate

A spatial predicate object created by predicate helpers.

Details

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.