Download and import of 'OpenStreetMap' ('OSM') data as 'sf' or 'sp' objects. 'OSM' data are extracted from the 'Overpass' web server and processed with very fast 'C++' routines for return to 'R'.
trim_osmdataso that all sf attributes are reinstated, and also issue message that sf-preload is necessary for this function
cmethod so it works when
opq_osm_idto query by OSM identifier alone
opq()to improve handling large queries.
getbb (..., format_out = "polygon")
trim_osmdatafunction to trim an
osmdataobject to within a bounding polygon (thanks @sytpp)
unique_osmdatafunction which reduces each component of an
osmdataobject only to unique elements (so
$osm_points, for example, only contains points that are not represented in other - line, polygon, whatever - objects).
add_osm_feature(and deprecate old version)