View source: R/get_osm_boundary.R
get_osm_boundary | R Documentation |
get_osm_boundary
accesses
this polygon creator tool.
get_osm_boundary(id, way = FALSE, sleep = 1, sf = FALSE, verbose = FALSE)
id |
A vector of OpenStreetMap relations. An integer key. |
way |
Is |
sleep |
Number of seconds between server queries. This is useful if many large polygons are being requested. |
sf |
Should the function return a sf object? |
verbose |
Should the function give messages? |
SpatialPolygonsDataFrame with WGS84 projection.
Stuart K. Grange
# Get North York Moors National Park boundary
sp_moors <- get_osm_boundary(409150)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.