Skip to contents

Read a Parquet file. Uses standard metadata information to identify geometry columns and coordinate reference system information.

Usage

st_read_parquet(dsn, col_select = NULL, props = NULL, ...)

Arguments

dsn

character file path to a data source

col_select

A character vector of column names to keep. Default is NULL which returns all columns

props

Now deprecated in read_parquet.

...

additional parameters to pass to ParquetFileReader

Value

object of class sf

Details

Reference for the metadata used: https://github.com/geoarrow/geoarrow. These are standard with the Python GeoPandas library. Adopted from wcjochem/sfarrow

See also

Examples

if (FALSE) { # \dontrun{
divides <- st_read_parquet("divides.parquet")
divides <- st_read_parquet("divides.parquet",
  col_select = c("divide_id", "geometry"))
} # }