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'.
osmdata_scto return data in
silicate::SCformat (see github.com/hypertidy/silicate; this also requires additional dependency on
osmdataobject modified to replace former
$metafield containing a list of
$OSM_version(currently 0.6), and
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)