A convenience wrapper around wfs_layers() that filters results with
grep(). Useful when a service has dozens or hundreds of layers.
wfs_find_layers(
base_url,
pattern,
driver = "auto",
version = NULL,
srs = NULL,
ignore.case = TRUE
)Character. The service endpoint URL. Can be a raw URL
or a GDAL-prefixed connection string (e.g. "WFS:https://...").
Character. A regular expression to match against layer names.
Character. One of "auto", "WFS", "OAPIF", "ESRIJSON".
Character or NULL. WFS version.
Character or NULL. Target SRS.
Logical. Passed to grep().
A character vector of matching layer names.
if (FALSE) { # \dontrun{
url <- wfs_example_url("list_tasmania")
wfs_find_layers(url, "CADASTRAL|TASVEG")
} # }