Skip to contents

Read geometry from Apache Parquet files

Usage

read_geoparquet_sf(file, ...)

geoarrow_collect_sf(x, ..., metadata = NULL)

read_geoparquet(
  file,
  ...,
  as_data_frame = TRUE,
  handler = NULL,
  metadata = NULL
)

geoarrow_collect(x, ..., handler = NULL, metadata = NULL)

# S3 method for data.frame
geoarrow_collect(x, ..., handler = NULL, metadata = NULL)

# S3 method for Table
geoarrow_collect(x, ..., handler = NULL, metadata = NULL)

# S3 method for RecordBatch
geoarrow_collect(x, ..., handler = NULL, metadata = NULL)

# S3 method for RecordBatchReader
geoarrow_collect(x, trans = identity, ..., handler = NULL, metadata = NULL)

# S3 method for Dataset
geoarrow_collect(x, trans = identity, ..., handler = NULL, metadata = NULL)

# S3 method for arrow_dplyr_query
geoarrow_collect(x, ..., handler = NULL, metadata = NULL)

Arguments

file

A file or InputStream to read; passed to arrow::read_parquet(), arrow::read_feather(), or arrow::read_ipc_stream().

...

Arguments passed on to arrow::read_parquet

col_select

A character vector of column names to keep, as in the "select" argument to data.table::fread(), or a tidy selection specification of columns, as used in dplyr::select().

props

ParquetArrowReaderProperties

x

An object to collect into a data.frame, converting geometry columns according to handler.

metadata

Optional metadata to include to override metadata available in the file.

as_data_frame

Use FALSE to return an arrow::Table instead of a data.frame.

handler

A wk handler to use when as.data.frame is TRUE for all geometry columns.

trans

A function to be applied to each chunk after it has been collected into a data frame.

Value

The result of arrow::read_parquet(), with geometry columns processed according to handler.