You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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)