osm_points
R/osm-extract.R
osm_points.Rd
Extract all osm_points from an osmdata object
osm_points(dat, id)
An object of class osmdata
OSM identification of one or more objects for which points are to be extracted
An sf Simple Features Collection of points
if (FALSE) { tr <- opq ("trentham australia") coliban <- tr$osm_lines [which (tr$osm_lines$name == 'Coliban River'),] pts <- osm_points (tr, rownames (coliban)) # all points of river waterfall <- pts [which (pts$waterway == 'waterfall'),] # the waterfall point }