|
@@ -29,9 +29,8 @@ copy_polygon_to_db <- function(x = NULL, conf = NULL, id = "fid",
|
|
|
conf$dbname, conf$host, conf$port, conf$user, conf$password, conf$sslmode,
|
|
conf$dbname, conf$host, conf$port, conf$user, conf$password, conf$sslmode,
|
|
|
conf$schema, x, id, conf$schema, conf$table, crs_source, crs_target
|
|
conf$schema, x, id, conf$schema, conf$table, crs_source, crs_target
|
|
|
)
|
|
)
|
|
|
- source(paste0(getwd(), "/R/db_create_new_schema.R"))
|
|
|
|
|
- # Create new schema if not exist.
|
|
|
|
|
- db_create_new_schema(conf)
|
|
|
|
|
|
|
+ ruut::db_create_new_schema(conf)
|
|
|
|
|
+ Sys.sleep(2)
|
|
|
system(cmd)
|
|
system(cmd)
|
|
|
} else {
|
|
} else {
|
|
|
NULL
|
|
NULL
|