Skip to contents

Use an interactive menu to select and download a feature for use in other functions

Usage

select_feature(base.url = NULL, get = FALSE)

Arguments

base.url

WFS url, for example "https://kartta.hsy.fi/geoserver/wfs"

get

Should the selected feature be downloaded? Default is FALSE

Value

feature Title (character) or feature object (sf), if get parameter is TRUE

Author

Pyry Kantanen pyry.kantanen@gmail.com

Examples

if (FALSE) {
selection <- select_feature(base.url = "https://kartta.hsy.fi/geoserver/wfs")
feature <- get_feature(base.url = "https://kartta.hsy.fi/geoserver/wfs", type_name = selected)
ggplot(feature) +
  geom_sf()
}