- file_path
A URL or the path to a .pbf
or .gpkg
file. If a URL,
then it must be specified using HTTP/HTTPS protocol.
- layer
Which layer
should be read in? Typically points
, lines
(the default), multilinestrings
, multipolygons
or other_relations
. If
you specify an ad-hoc query using the argument query
(see introductory
vignette and examples), then oe_get()
and oe_read()
will read the layer
specified in the query and ignore layer
argument. See also
#122.
- ...
(Named) arguments that will be passed to sf::st_read()
, like
query
, wkt_filter
or stringsAsFactors
. Check the introductory
vignette to understand how to create your own (SQL-like) queries.
- provider
Which provider should be used to download the data? Available
providers can be browsed with oe_providers()
. For oe_get()
and
oe_match()
, if place
is equal to ITS Leeds
, then provider
is
internally set equal to "test"
. This is just for simple examples and
internal tests.
- download_directory
Directory to store the file containing OSM data?.
- file_size
How big is the file? Optional. NA
by default. If it's
bigger than max_file_size
and the function is run in interactive mode,
then an interactive menu is displayed, asking for permission to download
the file.
- force_download
Should the .osm.pbf
file be updated even if it has
already been downloaded? FALSE
by default. This parameter is used to
update old .osm.pbf
files.
- max_file_size
The maximum file size to download without asking in
interactive mode. Default: 5e+8
, half a gigabyte.
- download_only
Boolean. If TRUE
, then the function only returns the
path where the matched file is stored, instead of reading it. FALSE
by
default.
- skip_vectortranslate
Boolean. If TRUE
, then the function skips all
vectortranslate operations and it reads (or simply returns the path) of the
.osm.pbf
file. FALSE
by default.
- vectortranslate_options
Options passed to the sf::gdal_utils()
argument options
. Set by default. Check details in the introductory
vignette and the help page of oe_vectortranslate()
.
- osmconf_ini
The configuration file. See documentation at
gdal.org. Check details in the
introductory vignette and the help page of oe_vectortranslate()
. Set by
default.
- extra_tags
Which additional columns, corresponding to OSM tags, should
be in the resulting dataset? NULL
by default. Check the introductory
vignette and the help pages of oe_vectortranslate()
and oe_get_keys()
.
Ignored when osmconf_ini
is not NULL
.
- force_vectortranslate
Boolean. Force the original .pbf
file to be
translated into a .gpkg
file, even if a .gpkg
with the same name
already exists? FALSE
by default. If tags in extra_tags
match data in
previously translated .gpkg
files no translation occurs (see
#173 for details).
Check the introductory vignette and the help page of
oe_vectortranslate()
.
- never_skip_vectortranslate
Boolean. This is used in case the user
passed its own .ini
file or vectortranslate options (since, in those
case, it's too difficult to determine if an existing .gpkg
file was
generated following the same options.)
- boundary
An sf
/sfc
/bbox
object that will be used to create a
spatial filter during the vectortranslate operations. The type of filter
can be chosen using the argument boundary_type
.
- boundary_type
A character vector of length 1 specifying the type of
spatial filter. The spat
filter selects only those features that
intersect a given area, while clipsrc
also clips the geometries. Check
the examples and also here for
more details.
- quiet
Boolean. If FALSE
, the function prints informative messages.
Starting from sf
version
0.9.6,
if quiet
is equal to FALSE
, then vectortranslate operations will
display a progress bar.