st_read_feather {sfarrow} | R Documentation |
sf
objectRead a Feather file. Uses standard metadata information to identify geometry columns and coordinate reference system information.
st_read_feather(dsn, col_select = NULL, ...)
dsn |
character file path to a data source |
col_select |
A character vector of column names to keep. Default is
|
... |
additional parameters to pass to
|
Reference for the metadata used:
https://github.com/geopandas/geo-arrow-spec. These are standard with
the Python GeoPandas
library.
object of class sf
# load Natural Earth low-res dataset.
# Created in Python with GeoPandas.to_feather()
path <- system.file("extdata", package = "sfarrow")
world <- st_read_feather(file.path(path, "world.feather"))
world
plot(sf::st_geometry(world))