-
Notifications
You must be signed in to change notification settings - Fork 5
/
GMLAbstractGeneralDerivedCRS.R
46 lines (44 loc) · 1.37 KB
/
GMLAbstractGeneralDerivedCRS.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
#' GMLAbstractGeneralDerivedCRS
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords ISO GML abstract single crs
#' @return Object of \code{\link{R6Class}} for modelling an GMLAbstractGeneralDerivedCRS
#' @format \code{\link{R6Class}} object.
#'
#' @field conversion
#'
#' @section Methods:
#' \describe{
#' \item{\code{new(xml, defaults, id)}}{
#' This method is used to instantiate a GML abstract general derived CRS
#' }
#' }
#'
#' @references
#' ISO 19136:2007 Geographic Information -- Geographic Markup Language.
#' http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=32554
#'
#' OGC Geography Markup Language. http://www.opengeospatial.org/standards/gml
#'
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com>
#'
GMLAbstractGeneralDerivedCRS <- R6Class("GMLAbstractGeneralDerivedCRS",
inherit = GMLAbstractSingleCRS,
private = list(
xmlElement = "AbstractGeneralDerivedCRS",
xmlNamespacePrefix = "GML"
),
public = list(
#conversion [1..1]: GMLConversion
conversion = NULL,
#setConversion
setConversion = function(conversion){
if(!is(conversion, "GMLConversion")){
stop("The argument value should an object of class 'GMLConversion'")
}
self$conversion <- GMLElement$create("conversion", value = conversion)
}
)
)