Convert a simple features spatial object from sf and write to a Parquet file using write_parquet. Geometry columns (type sfc) are converted to well-known binary (WKB) format.

st_write_parquet(obj, dsn, ...)



object of class sf


data source name. A path and file name with .parquet extension


additional options to pass to write_parquet


obj invisibly

See also


nc <- sf::st_read(system.file("shape/nc.shp", package="sf"), quiet = TRUE) st_write_parquet(obj=nc, dsn=file.path(tempdir(), "nc.parquet"))
#> Warning: This is an initial implementation of Parquet/Feather file support and #> geo metadata. This is tracking version 0.1.0 of the metadata #> ( This metadata #> specification may change and does not yet make stability promises. We #> do not yet recommend using this in a production setting unless you are #> able to rewrite your Parquet/Feather files.
# In Python, read the new file with geopandas.read_parquet(...) nc_p <- st_read_parquet(file.path(tempdir(), "nc.parquet"))