Learn R Programming

helsinki (version 1.0.6)

select_feature: Interactively browse and select features

Description

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

Usage

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

Value

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

Arguments

base.url

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

get

Should the selected feature be downloaded? Default is FALSE

Author

Pyry Kantanen pyry.kantanen@gmail.com

See Also

get_feature, get_feature_list

Examples

Run this code
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()
}

Run the code above in your browser using DataLab