-
Notifications
You must be signed in to change notification settings - Fork 5
/
ISOImageryContext.R
48 lines (46 loc) · 1.43 KB
/
ISOImageryContext.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
#' ISOImageryContext
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords ISO imagery context
#' @return Object of \code{\link{R6Class}} for modelling an ISO Imagery Context
#' @format \code{\link{R6Class}} object.
#'
#' @examples
#' #possible values
#' values <- ISOImageryContext$values(labels = TRUE)
#'
#' #some def
#' acquisition <- ISOImageryContext$new(value = "acquisition")
#'
#' @references
#' - 19139 \url{https://schemas.isotc211.org/19115/-2/gmi/1.0/gmi/#element_MI_ContextCode}
#'
#' - 19115-3 \url{https://schemas.isotc211.org/19115/-3/mac/2.0/mac/#element_MI_ContextCode}
#'
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com>
#'
ISOImageryContext <- R6Class("ISOImageryContext",
inherit = ISOCodeListValue,
private = list(
xmlElement = "MI_ContextCode",
xmlNamespacePrefix = list(
"19139" = "GMI",
"19115-3" = "MAC"
)
),
public = list(
#'@description Initializes object
#'@param xml object of class \link{XMLInternalNode-class}
#'@param value value
#'@param description description
initialize = function(xml = NULL, value, description = NULL){
super$initialize(xml = xml, id = private$xmlElement, value = value, description = description,
addCodeSpaceAttr = FALSE)
}
)
)
ISOImageryContext$values <- function(labels = FALSE){
return(ISOCodeListValue$values(ISOImageryContext, labels))
}