Table$to_sf_tibble(max_results=NULL, variables=NULL, geography_variable=NULL, batch_preprocessor=NULL) → SF tibble

Returns a Simple Features tibble representing a table with a geography variable.


max_results : int, default NULL The max number of records to load into the tibble. If not specified, the entire table will be loaded.

variables : list(str) | character vector The specific variables to return, e.g., variables = c("name", "date") . If not specified, all variables in the table will be returned.

geography_variable : str, default NULL The variable to use as the sf geometry column. If unset, the first geography variable in the tibble will be used.

batch_preprocessor : function, default NULL Function used to preprocess the data, invoked for each batch of records as they are initially loaded. This can be helpful in reducing the size of the data before the final table is loaded. The function accepts one argument, an Arrow RecordBatch, and must return a Arrow RecordBatch or NULL. If you prefer to work with the data solely in a streaming manner, see Table$to_arrow_batch_reader()


sf tibble

Last updated