get_osm_boundary: Function to get OpenStreetMap boundaries as spatial polygons.

Description Usage Arguments Value Author(s) Examples

View source: R/get_osm_boundary.R

Description

get_osm_boundary accesses this polygon creator tool.

Usage

1
get_osm_boundary(id, way = FALSE, verbose = FALSE)

Arguments

id

A vector of OpenStreetMap relations. An integer key.

way

Is id a way? If TRUE, a different method is needed which scrapes XML directly from OpenStreetMap for nodes and is a bit slow.

verbose

Should the function give messages?

Value

SpatialPolygonsDataFrame with WGS84 projection.

Author(s)

Stuart K. Grange

Examples

1
2
# Get North York Moors National Park boundary
sp_moors <- get_osm_boundary(409150)

skgrange/gissr documentation built on Jan. 13, 2020, 8:45 a.m.