% Generated by roxygen2: do not edit by hand % Please edit documentation in R/construct_to_gpkg_output_file_str.R \name{construct_to_gpkg_output_file_str} \alias{construct_to_gpkg_output_file_str} \title{'qgisprocess' funktsiooonides GPKG INPUT/OUTPUT konstrueerimine GPKG kujule salvestamiseks} \usage{ construct_to_gpkg_output_file_str( conf = NULL, geometry_field = "geom", is_input_str = TRUE ) } \arguments{ \item{conf}{A list() of configuration variables. Default values \code{\link[ruut]{get_config}}.} \item{geometry_field}{str A geometri field name. Default: "geom".} \item{is_input_str}{TRUE/FALSE kui tulemusena väljastatakse import, siis TRUE.} } \value{ A string OUTPUT: "ogr:dbname='/data/gpkg/artiklid/artikkel_210127_valga_matsalu_lahemaa/test.gpkg' table=\"uus_epk200t_bb\"", INPUT: "/data/gpkg/artiklid/artikkel_210127_valga_matsalu_lahemaa/test.gpkg|layername=uus_epk200t_bb". } \description{ See funktsioon konstrueerib 'qgisprocess' funktsioonides enamasti INPUT/OUTPUT/OVERLAY parameetri argumentide kasutatava fraasi, mis on vajalik postgresql andmebaasiga ühendamiseks. } \examples{ \dontrun{ conf <- ruut::get_config() conf$gpkg_home <- "/data/gpkg/artiklid/artikkel_210127_valga_matsalu_lahemaa" conf$gpkg_file <- "matsalu" conf$gpkg_table <- "piir" input <- ruut::construct_to_gpkg_output_postgres_str( conf = conf, is_input_str = TRUE ) conf$gpkg_home <- "/data/gpkg/artiklid/artikkel_210127_valga_matsalu_lahemaa" conf$gpkg_file <- "mooduli_ruut_test" conf$gpkg_table <- "layerOne" output <- ruut::construct_to_gpkg_output_file_str( conf = conf, geometry_field = "geom", is_input_str = FALSE ) str <- paste0("{ 'DISSOLVE' : False, 'DISTANCE' : 100, 'END_CAP_STYLE' : 2, 'INPUT' : '", input, "', 'JOIN_STYLE' : 1, 'MITER_LIMIT' : 2, 'OUTPUT' : '", output, "', 'SEGMENTS' : 5 }") algorithm <- "native:buffer" cmd <- ruut::construct_qgis_output_result_to_beter_format(str = str, algorithm = algorithm) system(cmd) } } \seealso{ \code{\link[=db_connect]{db_connect()}}, \code{\link[=get_config]{get_config()}}, \code{\link[=construct_ogr2ogr_PG_connect_str]{construct_ogr2ogr_PG_connect_str()}}, \code{\link[=construct_qgis_output_result_to_beter_format]{construct_qgis_output_result_to_beter_format()}},\code{\link[=construct_to_gpkg_output_file_str]{construct_to_gpkg_output_file_str()}} } \keyword{qgis_process}