Skip to content

Releases: ropensci/osmdata

osmdata 0.3.0

24 Aug 18:08

Choose a tag to compare

Breaking changes

  • Remove magrittr from imports. User code relaying on reexported pipe %>%
    from osmdata must explicitly load it with library(magrittr).
    Code examples, tests and vignettes now use the pipe from base (|>) available since R 4.1 (#361)
  • getbb(..., format_out = "polygon") return polygons following [https://www.ogc.org/standards/sfa/].
    Polygons are defined by a list of matrices of coordinates. The first ring defines the exterior boundary, and the following rings define holes if present.
    Also fix getbb(..., format_out = "sf_polygon") returning each (multi)polygon as a row in an sf object.
    Before, every ring was an independent polygon, even for holes or multipolygons,
    and for format_out = "sf_polygon", the features were split in a list with polygons in one item and multipolygons in another (#378).

Major changes

  • Implemented c.osmdata_sc method to join osmdata_sc objects (#333)
  • Depends on R >= 4.1 to use the base pipe (|>) in examples and vignettes (#371)
  • Deprecate nodes_only argument in opq(). Superseded by argument osm_types (#370)
  • Deprecate osmdata_sp (#372)
  • Pre-prend class names osmdata_sf and osmdata rather than append; thanks to @agila5 (#373)
  • Add osmadata_data.frame class to osmdata_data_frame() results (#378)
  • Reimplement trim_osmdata() using sf instead of sp. Now, it checks the full geometry instead of just the points
    to determine if an object is properly contained in the bbox (only for osmdata_sf objects, osdmata_sc still wrong) (#382).

Minor changes

  • Improved get_bb(..., format_out = "sf_polygon") to return full metadata
    along with geometries (#338 thanks to @RegularnaMatrica)
  • Mention key-only feature requests in README (#342 thanks to @joostschouppe)
  • Merge any columns in osmdata_sf() with mixed-case duplicated names (#348)
  • Set encoding to UTF-8 for tags and user names (#347)
  • Document the use of the input query as character strings for osmdata_*() (#349)
  • Consistent NA values throughout all multi-* matrices returned by osmdata_sf() (#355)
  • Fix dates and remove lubridate from imports (#360)
  • Restructure class definitions of osmdata_sf() and osmdata_sc() objects (#373, #374)
  • Revert added osmdata class to osmdata_data_frame() and osmdata_sc() +
    Fix docs to better represent classes accepted by trim_osmdata(), osm_poly2line() and extract function (#380)
  • Use terra functions instead of raster (obsolete) in osm_elevation() (#383)
  • @jmaspons is the new maintainer (#384).

CRAN version 0.2.5

15 Aug 09:01

Choose a tag to compare

0.2.5

Major changes

  • v0.2.4 was removed without notice from CRAN because of #329; this is a rapid re-submission

0.2.4

Minor changes

  • Bug fix to stop getbb call to Nominatim returning 405 error (#328)

CRAN version 0.2.3

01 Jun 13:00

Choose a tag to compare

Minor changes

  • Fix failing test due to changes to 'sp' moving towards deprecation.

CRAN v0.2.2

24 Apr 16:12

Choose a tag to compare

What's Changed

  • Fix queries with !match_case and only one value by @jmaspons in #317
  • Fix queries with multiple features and more than one osm_types by @jmaspons in #318
  • Add lat and lon columns for out * center; queries in osmdata_data_frame by @jmaspons in #316
  • Add lat and lon columns for [adiff ... out * center; queries in osmdata_data_frame by @jmaspons in #319
  • Add parameters from oqp to opq_osm_id by @jmaspons in #320
  • Implement out:csv queries compatible with all overpass_queries by @jmaspons in #321
  • Remove rows without hacks in mock files for test available_tags by @jmaspons in #324
  • update 'post_process_tags' in 'test-features' to reduce mock file sizes by @mpadge in #323

Full Changelog: v0.2.1...v0.2.2

CRAN v0.2.1

24 Feb 12:20

Choose a tag to compare

Major changes:

  • Very soft deprecation of nodes_only parameter in opq (#308, #312).

Minor changes

  • Couple of minor memory leak bug fixes in osmdata_data_frame C++ code.

CRAN version 0.2.0

09 Feb 15:03

Choose a tag to compare

This release welcomes a new package author @jmaspons. The lists of changes here gives an overview of the amazing work he has contributed to this new major version.


Major changes:

  • New osmdata_data_frame() function to return non-spatial data.frame structures directly from overpass; thanks to @jmaspons (#285).
  • Improved add_osm_features so that key-values pairs can be submitted as a list, rather than escape-delimited character strings; thanks to @elipousson (#277, #278).
  • opq() can now utilise overpass ability to filter results by area; thanks to @jmaspons (#286).
  • opq() now has additional "out" parameter to control the kinds of data returned by overpass; thanks to @jmaspons (#288).
  • opq() now has additional "osm_types" parameter to provide finer control of which kinds of data are returned by overpass; thanks to @jmaspons (#295).
  • sp dependency moved to suggested and added missing osmdata_* functions to docs; by @jmaspons & @mpadge (#302)
  • Fix key modifications for non-valid column names and handle duplicated column names in osmdata_* functions; by @jmaspons (#303)
  • @elipousson is new package contributor, thanks to the above work.
  • @jmaspons is new package author, thanks to #285 (plus most of the above, and a whole lot more!)

Minor changes:

  • Downgraded sp from "Imports" to "Suggests"; thanks to @jmaspons (#302)
  • Improved osm_osm_id() to accept vectors of ids and types; thanks to @jmaspons (#268, #282, #283)
  • "get-osmdata.R" file now split into several smaller and more manageable files (#306, thanks to @jmaspons)

CRAN version 0.1.10

09 Jun 14:14

Choose a tag to compare

Major changes:

  • Changed httr dependency for httr2 (#272)
  • Removed two authors of code formerly including for stubbing results; which is now done via httptest2 package.

Minor changes:

  • Moved jsonlite from Imports to Suggests (now only used in tests).

CRAN version 0.1.9

26 Jan 15:34

Choose a tag to compare

Major changes:

Minor changes:

  • New dependency on reproj package, so that trim_osmdata() can be applied to re-projected coordinates.

features no feature

07 Oct 19:44

Choose a tag to compare

Minor changes:

CRAN version 0.1.6

30 Jul 12:37

Choose a tag to compare

0.1.6

Major changes:

  • New function add_osm_features to enable OR-combinations of features in
    single queries.