Write sf object to Database
Write sf object to Database
Usage
# S4 method for class 'PostgreSQLConnection,character,sf'
dbWriteTable(
conn,
name,
value,
...,
row.names = FALSE,
overwrite = FALSE,
append = FALSE,
field.types = NULL,
binary = TRUE
)
# S4 method for class 'DBIObject,character,sf'
dbWriteTable(
conn,
name,
value,
...,
row.names = FALSE,
overwrite = FALSE,
append = FALSE,
field.types = NULL,
binary = TRUE
)Arguments
- conn
DBIObject
- name
character vector of names (table names, fields, keywords).
- value
a data.frame.
- ...
placeholder for future use.
- row.names
Add a
row.namecolumn, or a vector of lengthnrow(obj)containing row.names; defaultFALSE.- overwrite
Will try to
droptable before writing; defaultFALSE.- append
Append rows to existing table; default
FALSE.- field.types
default
NULL. Allows to override type conversion from R to PostgreSQL. SeedbDataType()for details.- binary
Send geometries serialized as Well-Known Binary (WKB); if
FALSE, uses Well-Known Text (WKT). Defaults toTRUE(WKB).
