Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

unique_osmdata

unique_osmdata


Description

Reduce the components of an osmdata object to only unique items of each type. That is, reduce $osm_points to only those points not present in other objects (lines, polygons, etc.); reduce $osm_lines to only those lines not present in multiline objects; and reduce $osm_polygons to only those polygons not present in multipolygon objects. This renders an osmdata object more directly compatible with typical output of sf.

Usage

unique_osmdata(dat)

Arguments

dat

An osmdata object

Value

Equivalent object reduced to only unique objects of each type

See Also


osmdata

Import 'OpenStreetMap' Data as Simple Features or Spatial Objects

v0.1.10
GPL-3
Authors
Mark Padgham [aut, cre], Bob Rudis [aut], Robin Lovelace [aut], Maëlle Salmon [aut], Andrew Smith [ctb], James Smith [ctb], Andrea Gilardi [ctb], Enrico Spinielli [ctb], Anthony North [ctb], Martin Machyna [ctb], Marcin Kalicinski [ctb, cph] (Author of included RapidXML code)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.