new_duckspatial_df: Create a duckspatial lazy spatial data frame

View source: R/duckspatial_df.R

new_duckspatial_dfR Documentation

Create a duckspatial lazy spatial data frame

Description

Extends tbl_duckdb_connection with spatial metadata (CRS, geometry column).

Usage

new_duckspatial_df(
  x,
  crs = NULL,
  geom_col = NULL,
  source_table = NULL,
  source_conn = NULL,
  create_view = FALSE
)

Arguments

x

Input: tbl_duckdb_connection, tbl_lazy, or similar dbplyr object

crs

CRS object or string

geom_col

Name of geometry column (default: "geom")

source_table

Name of the source table if applicable

source_conn

Name of the source connection if applicable

create_view

Logical. If TRUE, creates a temporary view for the input query. Otherwise it generates a temporary table.

Value

A duckspatial_df object


duckspatial documentation built on June 22, 2026, 9:08 a.m.