Skip to contents

Extract all osm_points from an osmdata_sf object

Usage

osm_points(dat, id)

Arguments

dat

An object of class osmdata_sf

id

OSM identification of one or more objects for which points are to be extracted

Value

An sf Simple Features Collection of points

See also

Examples

if (FALSE) { # \dontrun{
tr <- opq ("trentham australia") |> osmdata_sf ()
coliban <- tr$osm_lines [which (tr$osm_lines$name == "Coliban River"), ]
pts <- osm_points (tr, rownames (coliban)) # all points of river
# the waterfall point:
waterfall <- pts [which (pts$waterway == "waterfall"), ]
} # }