extract_roads: Extract Road Network data from OSM

View source: R/geo_utilities.R

extract_roadsR Documentation

Extract Road Network data from OSM

Description

Extract Road Network data from OSM

Usage

extract_roads(aoi, radius = NULL, clip = FALSE)

Arguments

aoi

Area of Interest as sf object

radius

Buffer redius in meters, default = 1000m

clip

Should the output be clipped to the AOI? Default is FALSE

Examples

## Not run: 

 library(gisr)

 adm_zmb <- get_admin1(countries = "Zambia") %>%
   dplyr::select(name) %>%
   dplyr::filter(name == 'Lusaka')

 adm_zmb %>%
   extract_roads() %>%
   gview()

## End(Not run)


USAID-OHA-SI/gisr documentation built on Feb. 10, 2024, 8:55 p.m.