-
Notifications
You must be signed in to change notification settings - Fork 5
/
ISOGeometricObjectType.R
48 lines (46 loc) · 1.48 KB
/
ISOGeometricObjectType.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
#' ISOGeometricObjectType
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords ISO geometric object type
#' @return Object of \code{\link{R6Class}} for modelling an ISO GeometricObjectType
#' @format \code{\link{R6Class}} object.
#'
#' @examples
#' #possible values
#' values <- ISOGeometricObjectType$values(labels = TRUE)
#'
#' #point type
#' pt <- ISOGeometricObjectType$new(value = "point")
#'
#' @references
#' - ISO 19139 \url{https://schemas.isotc211.org/19139/-/gmd/1.0/gmd/#element_MD_GeometricObjectTypeCode}
#'
#' - ISO 19115-3 \url{https://schemas.isotc211.org/19115/-3/msr/1.0/msr/#element_MD_GeometricObjectTypeCode}
#'
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com>
#'
ISOGeometricObjectType <- R6Class("ISOGeometricObjectType",
inherit = ISOCodeListValue,
private = list(
xmlElement = "MD_GeometricObjectTypeCode",
xmlNamespacePrefix = list(
"19139" = "GMD",
"19115-3" = "MSR"
)
),
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)
}
)
)
ISOGeometricObjectType$values <- function(labels = FALSE){
return(ISOCodeListValue$values(ISOGeometricObjectType, labels))
}