to_geojson: Write geojson using duckdb's native JSON writer

View source: R/write_dataset.R

to_geojsonR Documentation

Write geojson using duckdb's native JSON writer

Description

Write geojson using duckdb's native JSON writer

Usage

to_geojson(dataset, path, conn = cached_connection(), id_col = "iso_a3")

Arguments

dataset

a remote tbl object from open_dataset, or an in-memory data.frame.

path

a local file path or S3 path with write credentials

conn

duckdbfs database connection

id_col

pick a column as the id column


duckdbfs documentation built on Aug. 8, 2025, 6:57 p.m.