R/to_geojson.R
to_geojson.Rd
Write geojson using duckdb's native JSON writer
to_geojson(dataset, path, conn = cached_connection(), id_col = NULL)
a remote tbl object from open_dataset, or an in-memory data.frame.
open_dataset
a local file path or S3 path with write credentials
duckdbfs database connection
(deprecated). to_geojson() will preserve all atomic columns as properties.