import_streetnet.RdImport streets from an OpenStreetMap extract
import_streetnet(
path,
extent = NULL,
clip = FALSE,
highway_types = DEFAULT_HIGHWAY_TYPES,
tags = DEFAULT_TAGS,
quiet = FALSE
)Path to a .osm.pbf file containing the extracted OpenStreetMap
data for at least the extent of the area of interest.
The area of interest as object of class sf or
sfc. Only streets that intersect this area will be
imported. If NULL, streets are imported for the complete OpenStreetMap
extract.
Boolean. If TRUE, linestrings will be clipped by the given
extent. If FALSE, linestrings that intersect the given extent will be
imported as a whole. Defaults to FALSE. Ignored when extent = NULL.
A vector of possible values for OpenStreetMaps highway tag. Only streets that have one of these values for the highway tag will be imported. Defaults to DEFAULT_HIGHWAY_TYPES.
A vector of OpenStreetMap tags that should be included as attribute columns in the imported data. Defaults to DEFAULT_TAGS.
Boolean. If FALSE, display progress information on screen.
Defaults to FALSE.
An object of class sf with LINESTRING or
MULTILINESTRING geometries.