/
GSGeoPackageDataStore.R
49 lines (48 loc) · 1.71 KB
/
GSGeoPackageDataStore.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#' Geoserver REST API GeoPackageDataStore
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords geoserver rest api DataStore GeoPackage
#' @return Object of \code{\link{R6Class}} for modelling a GeoServer GeoPackage dataStore
#' @format \code{\link{R6Class}} object.
#'
#' @examples
#' ds <- GSGeoPackageDataStore$new(
#' name = "ds", description = "des",
#' enabled = TRUE, database = NULL
#' )
#'
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com>
#'
GSGeoPackageDataStore <- R6Class("GSGeoPackageDataStore",
inherit = GSAbstractDBDataStore,
private = list(
TYPE = "GeoPackage",
DBTYPE = "geopkg"
),
public = list(
#'@description initializes an GeoPackage data store
#'@param xml an object of class \link{xml_node-class} to create object from XML
#'@param name coverage store name
#'@param description coverage store description
#'@param enabled whether the store should be enabled or not. Default is \code{TRUE}
#'@param database database
initialize = function(xml = NULL, name = NULL,
description = "", enabled = TRUE,
database = NULL){
super$initialize(xml = xml, type = private$TYPE, dbType = private$DBTYPE,
name = name, description = description,
enabled = enabled)
if(!is.null(database)) super$setDatabase(database)
super$setMinConnections(NULL)
super$setMaxConnections(NULL)
super$setConnectionTimeout(NULL)
super$setFetchSize(NULL)
super$setLooseBBox(NULL)
super$setPreparedStatements(NULL)
super$setMaxOpenPreparedStatements(NULL)
super$setEstimatedExtends(NULL)
}
)
)