Description Usage Arguments Details Value
dbWriteSpatial writes a Spatial*DataFrame to a PostGIS table
1 2 | dbWriteSpatial(con, spatial.df, schemaname = "public", tablename,
srid = NULL, replace = FALSE)
|
con |
A valid PostgreSQL connection (from RPostgreSQL) |
spatial.df |
A valid Spatial*DataFrame |
schemaname |
Schema where the target table of interest will reside |
tablename |
Name of the target database table. |
srid |
SRID value to be passed to PostGIS (may not be needed) |
replace |
Specify whether an existing table should be replaced |
This is a function for writing spatial data directly to
PostgreSQL/PostGIS table from an appropriate Spatial*DataFrame.
The function relies on the GeoJSON format to
transfer the spatial data. The non-geometry columns in
the table are written via the RPostgreSQL package.
TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.