
osm_points
from an osmdata objectExtract all osm_points
from an osmdata object
osm_points(dat, id)
An sf Simple Features Collection of points
An object of class osmdata
OSM identification of one or more objects for which points are to be extracted
Other search:
osm_lines()
,
osm_multilines()
,
osm_multipolygons()
,
osm_polygons()
if (FALSE) {
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"), ]
}
Run the code above in your browser using DataLab