select_feature: Interactively browse and select features

Description Usage Arguments Value Author(s) See Also Examples

View source: R/get_feature_list.R

Description

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

Usage

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

Arguments

base.url

WFS url, for example "https://opaskartta.turku.fi/TeklaOGCWeb/WFS.ashx"

get

Should the selected feature be downloaded? Default is FALSE

Value

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

Author(s)

Pyry Kantanen <pyry.kantanen@gmail.com>

See Also

get_feature, get_feature_list

Examples

1
2
3
4
5
6
7
8
## Not run: 
url <- "https://opaskartta.turku.fi/TeklaOGCWeb/WFS.ashx"
selection <- select_feature(base.url = url)
feature <- get_feature(base.url = url, type_name = selected)
ggplot(feature) +
  geom_sf()

## End(Not run)

pitkant/turku documentation built on Dec. 22, 2021, 8:45 a.m.