Import 'OpenStreetMap' Data as Simple Features or Spatial Objects

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'.


News

0.0.8

  • Fix bug in trim_osmdata so that all sf attributes are reinstated, and also issue message that sf-preload is necessary for this function
  • Fix big with opq (key_exact = FALSE) so value_exact is always also set to FALSE

0.0.7

  • Fix bug in c method so it works when sf not loaded
  • Fix bug in overpass query syntax to match new QL requirements

0.0.6

  • Add new function 'osm_poly2line()' to coerce the 'osmdata$odm_polygons' object for 'osmdata_sf' objects to lines, and append to 'osmdata$osm_lnes'. This is important for street networks ('add_osm_objects (key = "highway")'), which are otherwise separated between these two components.
  • Add new function opq_osm_id to query by OSM identifier alone
  • Add timeout and memsize options to opq() to improve handling large queries.
  • Return useful information from overpass server when it returns neither error nor useful data
  • Make C++ code interruptible so long processing can be cancelled
  • Fix minor yet important C++ code lines that prevented package being used as dependency by other packages on some systems

0.0.5

  • Add extraction of bounding polygons with getbb (..., format_out = "polygon")
  • Add trim_osmdata function to trim an osmdata object to within a bounding polygon (thanks @sytpp)
  • Add unique_osmdata function which reduces each component of an osmdata object only to unique elements (so $osm_points, for example, only contains points that are not represented in other - line, polygon, whatever - objects).
  • Rename add_feature to add_osm_feature (and deprecate old version)

0.0.4

  • Enable alternative overpass API services through get_overpass_url() and set_overpass_url() functions
  • Extend and improve vignette

0.0.3

  • Change tests only, no functional difference

0.0.2

  • Rename function opq_to_string() to opq_string()

0.0.1 (19 May 2017)

  • Remove configure and Makevars files
  • Fix tests

0.0.0 (18 May 2017)

  • Initial CRAN release

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("osmdata")

0.0.9 by Mark Padgham, 2 months ago


https://github.com/ropensci/osmdata


Report a bug at https://github.com/ropensci/osmdata/issues


Browse source code at https://github.com/cran/osmdata


Authors: Mark Padgham [aut, cre] , Bob Rudis [aut] , Robin Lovelace [aut] , Maƫlle Salmon [aut] , Andrew Smith [ctb] , James Smith [ctb] , Marcin Kalicinski [ctb, cph] (Author of included RapidXML code) , Finkelstein Noam [ctb, cph] (Author of included stub.R code) , Bartnik Lukasz [ctb, cph] (Author of included stub.R code)


Documentation:   PDF Manual  


GPL-3 license


Imports curl, httr, lubridate, magrittr, methods, Rcpp, rvest, jsonlite, sp, tibble, utils, xml2

Suggests devtools, knitr, rmarkdown, roxygen2, sf, testthat

Linking to Rcpp

System requirements: C++11


Imported by dodgr, osmplotr.

Suggested by tmap, tmaptools.


See at CRAN