Skip to contents

Extracts the last path element of an endpoint URL, i.e. the name that read_wfs() and list_wfs_layers() expect.

Usage

wfs_service_name(url)

Arguments

url

endpoint URL, with or without query string.

Value

character vector of service names, NA where none could be found.

Examples

wfs_service_name("https://gdi.berlin.de/services/wfs/atkis?SERVICE=WFS")
#> [1] "atkis"