load_osm_value_groups: Download OSM data with multiple values, combine and store...

Description Usage Arguments Value Examples

Description

Wrapper function for osm_to_sf that creates a unique file name from the passed parameters, downloads the requested data if necessary and returns the resulting sf object.

Usage

1
2
load_osm_value_groups(bbox, crs, geom_type, keys, values, group,
  clip_by_outline, timeout = 25)

Arguments

bbox

vector of corner coordinates of the area to download.

crs

output coordinate reference system.

geom_type

OSM geometry type.

keys

vector of OSM keys to download.

values

vector of OSM values to download.

group

group name for the downloaded data.

clip_by_outline

(optional) city name based on which the outline should be cut.

timeout

(optional) overpass timeout time in seconds.

Value

sf object of downloaded data.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
# London
bb <- c (-0.90, 51.30, 0.0, 51.40)
crs <- 32630
geom_type <- "osm_points"
key <- "amenity"
values <- c ("atm", "bank")
group_name <- "finance"
clip_by <- "London"

finance_london <- load_osm_value_groups (bb, crs, geom_type, key, values,
                                         group_name, clip_by)

## End(Not run)

karpfen/spaceplace documentation built on May 24, 2019, 7:34 a.m.