-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
152 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#' SWEAbstractSWE | ||
#' | ||
#' @docType class | ||
#' @importFrom R6 R6Class | ||
#' @export | ||
#' @keywords ISO GML | ||
#' @return Object of \code{\link{R6Class}} for modelling an SWE abstract SWE object | ||
#' @format \code{\link{R6Class}} object. | ||
#' | ||
#' @note Class used internally by geometa | ||
#' | ||
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com> | ||
#' | ||
SWEAbstractSWE <- R6Class("SWEAbstractSWE", | ||
inherit = ISOAbstractObject, | ||
private = list( | ||
xmlElement = "AbstractSWE", | ||
xmlNamespacePrefix = "SWE" | ||
), | ||
public = list( | ||
|
||
#'@description Initializes an object of class \link{SWEAbstractSWE} | ||
#'@param xml object of class \link{XMLInternalNode-class} from \pkg{XML} | ||
#'@param element element | ||
#'@param attrs attrs | ||
#'@param defaults defaults | ||
#'@param wrap wrap | ||
initialize = function(xml = NULL, element = NULL, attrs = list(), defaults = list(), wrap = FALSE){ | ||
if(is.null(element)) element <- private$xmlElement | ||
super$initialize(xml, element, namespace = private$xmlNamespacePrefix, | ||
attrs = attrs, defaults = defaults, | ||
wrap = wrap, value_as_field = TRUE) | ||
} | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#' SWENilValues | ||
#' | ||
#' @docType class | ||
#' @importFrom R6 R6Class | ||
#' @export | ||
#' @keywords ISO SWE | ||
#' @return Object of \code{\link{R6Class}} for modelling an SWE nil values object | ||
#' @format \code{\link{R6Class}} object. | ||
#' | ||
#' @references | ||
#' SWE Common Data Model Encoding Standard. https://www.ogc.org/standards/swecommon | ||
#' | ||
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com> | ||
#' | ||
SWENilValues <- R6Class("SWENilValues", | ||
inherit = SWEAbstractSWE, | ||
private = list( | ||
xmlElement = "NilValues", | ||
xmlNamespacePrefix = "SWE" | ||
), | ||
public = list( | ||
|
||
#'@field nilValue nil value | ||
nilValue = matrix(NA_real_, 1, 1), | ||
|
||
initialize = function(xml = NULL, value = NULL){ | ||
super$initialize(xml, element = private$xmlElement, | ||
attrs = list(), defaults = list(), | ||
wrap = FALSE) | ||
if(!is.null(value)) self$nilValue = value | ||
} | ||
) | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.