Read an Arrow multi-file dataset and create sf
object
Arguments
- dataset
a
Dataset
object created byarrow::open_dataset
or anarrow_dplyr_query
- find_geom
logical. Only needed when returning a subset of columns. Should all available geometry columns be selected and added to to the dataset query without being named? Default is
FALSE
to require geometry column(s) to be selected specifically.
Value
object of class sf
Details
This function is primarily for use after opening a dataset with
arrow::open_dataset
. Users can then query the arrow Dataset
using dplyr
methods such as filter
or
select
. Passing the resulting query to this function
will parse the datasets and create an sf
object. The function
expects consistent geographic metadata to be stored with the dataset in
order to create sf
objects.
Adopted from wcjochem/sfarrow