- Fixed a bug in
oe_match()that occurred every time
oe_match()found an exact match between the input
placeand a non-default OSM data provider (i.e. non Geofabrik). In those cases, the downloaded file was named as
different-provider_xyz.osm.pbf. Reported by @GretaTimaite, thanks. See #246. This is a quite major bug, and we suggest you erase all
.gpkgfiles stored in the persistent download directory (see also
- Fixed a bug in
oe_get_keys()that occurred when the value for a given key was either empty or equal to
boundaryargument can be specified using
bboxobject is converted to
sf::st_as_sfcand preserves the same CRS.
- Added a more informative error message when
oe_read()are run with empty or unnamed arguments in
...(#234 and #241).
- The function
oe_get_keys()gains a new argument named
download_directorythat can be used to specify the path of the directory that stores the
- Included a new function named
oe_clean()to remove all
.gpkgfiles stored in a given directory. Default value is
- Added a message to
oe_download()and removed a warning from
oe_read(). The message is printed every time a user downloads a new OSM extract from a certain provider, whereas the warning used to be raised when a given
queryselected a layer different from the
- Added two new parameters to
return_gpkg. They can be used to select which file formats should the function return (#253).
- Added a more informative error message in case
oe_download()fails explaining that partially downloaded
.pbffiles should be removed to avoid problems while running other functions (#221).
- We are experimenting with the new features of
testthatand we implemented the so-called test-fixtures to run tests in a more isolated environment (#255). This is however still experimental for us.
- Added more informative error and warning messages to
- The file path returned by
oe_download()is specified using
\\separator on Windows.
CRAN release: 2021-10-27
- Import two new packages:
- Improved the approach adopted to download files from the web. In particular, the functions
oe_search()now take advantage of
httrfunctionalities. They return informative messages in case of errors (#231, #232).
- Vignettes and examples do not require internet connection.
- The duplicated fields in
extra_tagsare now removed before modifying the
osmconf.inifile. Duplicated tags means something like
extra_tags = c("A", "A")or even fields that are included by default (i.e.
extra_tags = "highway"for the
lineslayer). See discussion in #229.
CRAN release: 2021-07-27
CRAN release: 2021-06-10
oe_get_keys()function can be used to extract the values associated with all or some keys. We also defined an ad-hoc printing method and fixed several bugs. The examples were improved. Moreover, the function tries to match an input
zonewith one of the OSM extracts previously downloaded (#201 and #196).
- If the parameter
bboxobject with missing CRS, then
oe_match()raises a warning message and sets
CRS = 4326. This has relevant consequences on other functions (like
oe_get()) that wrap
- Starting from
sf> 0.9.8, the function
oe_vectortranslate()stops with an error when there is a problem in the argument
quiet = FALSE(instead of raising a warning or crashing the
Rsession). See here for more details.
- The options
c("-f", "GPKG", "-overwrite", "-oo", "CONFIG_FILE=", path-to-config-file, "-lco", "GEOMETRY_NAME=geometry", layer)are always appended at the end of
vectortranslate_optionsargument unless the user explicitly sets different default parameters for the arguments
-lco(#200). We believe those are sensible defaults and can help users creating less verbose specifications for
- We create two new arguments in
oe_vectortranslate()(therefore also in
boundary_type. They can be used to create an ad-hoc spatial filter during the vectortranslate operations (and create even less verbose specifications in
vectortranslate_optionsargument). See docs and introductory vignette for more details.
- The argument
providerwas removed from
oe_match_pattern()since the function automatically checks all available providers (#208).
- The parameter
force_vectortranslateis checked before reading the layers of an existing
oe_vectortranslate()doesn’t check the existing layers. This is important for user that run
oe_vectortranslate()after stopping the vectortranslate process.
- The arguments
osmconf_iniare not ignored when
- Fix the provider’s data objects for
- Improved several examples and fixed a small bug in the documentation of
- Fix several typos in the vignettes and docs.
- Created a new space in the github repo named Discussion to have conversations, ask questions and post answers without opening issues. Link: https://github.com/ropensci/osmextract/discussions.
- Tests that require an internet connection are now skipped on CRAN (#189).
CRAN release: 2021-02-15
This is a minor release.
- We modified several examples and tests to fix several errors noticed during CRAN tests (#175).
CRAN release: 2021-02-11
Published on CRAN!
- Add a
oe_match(). It is used to choose between multiple hierarchically nested OSM extracts. The default behaviour is to select the smallest administrative unit (#160).
- Modify the behaviour of
oe_match(). The function checks all implemented providers in case the input
placeis not matched with any geographical zone for the chosen provider (#155).
- Add a simple interface to Nominatim API that enables
oe_match()to geolocate text strings that cannot be found in the providers (#155).