View source: R/duckspatial_df.R
| new_duckspatial_df | R Documentation |
Extends tbl_duckdb_connection with spatial metadata (CRS, geometry column).
new_duckspatial_df(
x,
crs = NULL,
geom_col = NULL,
source_table = NULL,
source_conn = NULL,
create_view = FALSE
)
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. |
A duckspatial_df object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.