listLayers: List Available WFS Layers

View source: R/listFeatures.R

listLayersR Documentation

List Available WFS Layers

Description

Lists layers available from the WFS geoserver. This is similar to sending the WFS request of getFeatureTypes. listLayers() returns a data.frame with the 'Name' and title of the layers available. The 'Name' is what is used within vicmap_query() while the title provides somewhat of a description/clarification about the layer.

Usage

listLayers(..., abstract = TRUE)

Arguments

...

Additional arguments passed to grep. The pattern argument can be used to search for specific layers with matching names or titles.

abstract

Whether to return a column of abstract (and metadata ID), the default is true. Switching to FALSE will provide a data.frame with only 2 columns and may be slightly faster.

Value

data.frame of 2 (abstract = FALSE) or 4 (abstract = TRUE) columns

Examples


try(
listLayers(pattern = "trees", ignore.case = TRUE)
)


VicmapR documentation built on July 9, 2023, 7:34 p.m.