Explorar el Código

Eemaldatud lingid moodulile qgisprocess, kuna QGIS 3.18 see moodul ei tööta.

Ardo Kubjas hace 5 años
padre
commit
b455f0cc45

+ 1 - 0
.Rbuildignore

@@ -1,3 +1,4 @@
 ^ruut\.Rproj$
 ^\.Rproj\.user$
 ^LICENSE\.md$
+^ajutised_muutujad$

+ 1 - 1
DESCRIPTION

@@ -12,4 +12,4 @@ Encoding: UTF-8
 LazyData: true
 Roxygen: list(markdown = TRUE)
 RoxygenNote: 7.1.1.9000
-Imports: qgisprocess, DBI, pool, RPostgreSQL, sf, raster, stars, rgdal, tidyverse, inborutils, rvest, seleniumPipes, rjson, methods,jsonlite,magrittr,rlang
+Imports: DBI, pool, RPostgreSQL, sf, raster, stars, rgdal, tidyverse, inborutils, rvest, seleniumPipes, rjson, methods,jsonlite,magrittr,rlang

+ 0 - 2
NAMESPACE

@@ -5,8 +5,6 @@ export(construct_ogr2ogr_PG_connect_str)
 export(construct_qgis_output_result_to_better_format)
 export(construct_to_gpkg_output_file_str)
 export(construct_to_gpkg_output_postgres_str)
-export(convert_sf2qgis)
-export(copy_gpkg_to_db)
 export(copy_qgis_object_to_db)
 export(copy_shp_to_db)
 export(db_all_schemas)

+ 0 - 1
R/db_repair_tabel_geometry.R

@@ -21,7 +21,6 @@ db_repair_tabel_geometry <- function(conf = conf) {
   ## Algorithm
   # ruut::qgis_algorithm_search_by_word(str = "fix")
   # algorithm <- "native:fixgeometries"
-  # cat(qgisprocess::qgis_show_help(algorithm = algorithm))
   postgres <- sprintf(
     "postgres://dbname=\'%s\' host=%s port=%s user=\'%s\' sslmode=%s password=\'%s\' key=\'id\' srid=3301 type=Polygon checkPrimaryKeyUnicity=\'1\' ",
     conf$dbname, conf$host, conf$port, conf$user, conf$sslmode, conf$password

+ 0 - 1
R/qgis_algorithm_search_by_word.R

@@ -4,7 +4,6 @@
 #' @param str	string otsitav algoritmi fraas.
 #' @return Table found algorithms. Help for the selected algorithm.
 #' @return A array of all database schemas.
-#' @seealso [qgisprocess::qgis_algorithms()]
 #' @keywords qgis, help
 #' @export
 #' @examples

+ 0 - 0
R/convert_sf2qgis.R → inst/archive/convert_sf2qgis.R


+ 0 - 0
R/copy_gpkg_to_db.R → inst/archive/copy_gpkg_to_db.R


+ 0 - 32
man/convert_sf2qgis.Rd

@@ -1,32 +0,0 @@
-% Generated by roxygen2: do not edit by hand
-% Please edit documentation in R/convert_sf2qgis.R
-\name{convert_sf2qgis}
-\alias{convert_sf2qgis}
-\title{Konverteerimine: 'sf' to 'qgis'}
-\usage{
-convert_sf2qgis(x = NULL)
-}
-\arguments{
-\item{x}{object of class 'sf', 'sfc' or 'sfg'.}
-}
-\value{
-The object with class 'qgis_object'.
-}
-\description{
-Funktsioon konverteerib geomeetria 'sf' kujul 'qgis_object', et oleks rakendatavad QGIS >= 3.14 tööriist \url{https://github.com/paleolimbot/qgisprocess}. Vaata veel \url{https://r-spatial.github.io/sf/}, \code{\link[sf]{st_is_valid}}.
-}
-\examples{
-\dontrun{
-
-class(pk)
-# > [1] "sf" ...
-
-convert_sf2qgis(x = pk)
-
-}
-}
-\seealso{
-\code{\link[qgisprocess:qgis_run_algorithm]{qgisprocess::qgis_run_algorithm()}}, \code{\link[qgisprocess:is_qgis_result]{qgisprocess::qgis_output()}}, \code{\link[sf:valid]{sf::st_is_valid()}}, \code{\link[sf:st_read]{sf::read_sf()}}
-}
-\keyword{qgis}
-\keyword{sf,}

+ 0 - 56
man/copy_gpkg_to_db.Rd

@@ -1,56 +0,0 @@
-% Generated by roxygen2: do not edit by hand
-% Please edit documentation in R/copy_gpkg_to_db.R
-\name{copy_gpkg_to_db}
-\alias{copy_gpkg_to_db}
-\title{Export GPKG to PostgreSQL}
-\usage{
-copy_gpkg_to_db(gpkg = NULL, layer = NULL, conf = NULL)
-}
-\arguments{
-\item{gpkg}{Gpkg file path.}
-
-\item{layer}{A gpkg file layer \code{\link[sf:st_layers]{sf::st_layers()}}.}
-
-\item{conf}{A list() of configuration variables. Default values \code{\link[ruut]{get_config}}.}
-}
-\value{
-No output.
-}
-\description{
-Exports a gpkg file layer into a PostgreSQL database.
-}
-\details{
-gtype: Output geometry type 'enum':. Acceptable values: Number of selected option, e.g. '1' or Comma separated list of options, e.g. c(1,3). See more: \url{https://gdal.org/drivers/vector/pg.html}.
-\itemize{
-\item 0:
-\item 1: NONE
-\item 2: GEOMETRY
-\item 3: POINT
-\item 4: LINESTRING
-\item 5: POLYGON
-\item 6: GEOMETRYCOLLECTION
-\item 7: MULTIPOINT
-\item 8: MULTIPOLYGON
-\item 9: MULTILINESTRING
-}
-}
-\examples{
-\dontrun{
-
-conf <- ruut::get_config()
-gpkg_file <- "/home/ardo/aaa/data/gpkg/grids/estonian_grids.gpkg"
-# Vaata layer'eid
-sf::st_layers(gpkg_file)
-# Vali layer
-layer <- "epk200t_grid"
-conf$table <- "aaa_1"
-conf$schema <- "data"
-copy_gpkg_to_db(gpkg = gpkg_file, layer = layer, conf = conf)
-copy_gpkg_to_db(gpkg = gpkg_file, conf = conf) # viga
-}
-}
-\seealso{
-\code{\link[=get_config]{get_config()}}, \code{\link[=copy_shp_to_db]{copy_shp_to_db()}}, \code{\link[=copy_qgis_object_to_db]{copy_qgis_object_to_db()}}
-}
-\keyword{gpkg}
-\keyword{postgis,}

+ 0 - 3
man/qgis_algorithm_search_by_word.Rd

@@ -31,8 +31,5 @@ qgis_algorithm_search_by_word(str = "")
 qgis_algorithm_search_by_word()
 }
 }
-\seealso{
-\code{\link[qgisprocess:qgis_run]{qgisprocess::qgis_algorithms()}}
-}
 \keyword{help}
 \keyword{qgis,}