Returns a tibble describing each layer: geometry type, feature count (if available), spatial extent, and spatial reference.

wfs_layer_info(
  base_url,
  layers = NULL,
  driver = "auto",
  version = NULL,
  srs = NULL
)

Arguments

base_url

Character. The service endpoint URL. Can be a raw URL or a GDAL-prefixed connection string (e.g. "WFS:https://...").

layers

Character vector of layer names to inspect, or NULL to inspect all layers. Inspecting all layers can be slow for large services – consider using wfs_find_layers() first.

driver

Character. One of "auto", "WFS", "OAPIF", "ESRIJSON".

version

Character or NULL. WFS version.

srs

Character or NULL. Target SRS.

Value

A tibble::tibble with columns: name, geom_column, geom_type, feature_count, xmin, ymin, xmax, ymax, srs_wkt.

Examples

if (FALSE) { # \dontrun{
url <- wfs_example_url("list_tasmania")
wfs_layer_info(url, layers = "Public_OpenDataWFS:LIST_Cadastral_Parcels",
               version = "2.0.0", srs = "EPSG:28355")
} # }