Convert a simple features spatial object from sf
to a Parquet file using write_parquet. Geometry
columns (type sfc) are converted to well-known binary (WKB) format.
Usage
st_write_parquet(
obj,
dsn,
hf_version = "2.2",
license = "ODbL",
source = "spatial.water.noaa.gov",
...
)Arguments
- obj
object of class
sf- dsn
data source name. A path and file name with .parquet extension
- hf_version
dataset version
- license
dataset license
- source
dataset source
- ...
additional options to pass to
write_parquet
Details
Adopted from wcjochem/sfarrow
Examples
if (FALSE) { # \dontrun{
divides <- sf::read_sf("hydrofabric.gpkg", "divides")
st_write_parquet(divides, "divides.parquet", hf_version = "2.2")
} # }
