|
|
@@ -61,6 +61,7 @@ gpkg_piirkonnale_punktide_lisamine <- function(obj = NULL, gpkg_home = "/tmp") {
|
|
|
andmed <- rbind(andmed, data.frame("schema" = "teeregister_wfs", "table" = "n_teeosa_points"))
|
|
|
andmed <- rbind(andmed, data.frame("schema" = "teeregister_wfs", "table" = "n_ylek"))
|
|
|
for (intersect in intersect_layers) {
|
|
|
+ conf$gpkg_table <- intersect
|
|
|
intersect_layer <- ruut::construct_to_gpkg_output_file_str(conf = conf, is_input_str = T)
|
|
|
for (i in 1:nrow(andmed)) {
|
|
|
## teeregister_wfs andmebaasis on importimisel geomeetria välja tähistus 'geometry'.
|
|
|
@@ -71,7 +72,7 @@ gpkg_piirkonnale_punktide_lisamine <- function(obj = NULL, gpkg_home = "/tmp") {
|
|
|
output <- ruut::construct_to_gpkg_output_file_str(conf = conf, is_input_str = F)
|
|
|
input <- ruut::construct_to_gpkg_output_postgres_str(
|
|
|
conf = conf, geometry_type = "Point", srid = 3301,
|
|
|
- checkPrimaryKeyUnicity = TRUE, key = "id"
|
|
|
+ checkPrimaryKeyUnicity = TRUE, key = "id", geometry_field = geom
|
|
|
)
|
|
|
## ------------------- QGIS: qgisprocess ----------------------
|
|
|
str <- paste0("{ 'INPUT' : '", input, "', 'INTERSECT' : '", intersect_layer, "', 'OUTPUT' : '", output, "', 'PREDICATE' : [0] }")
|