-
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
19 changed files
with
1,058 additions
and
61 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
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,31 @@ | ||
#' ISoAbstractFeatureCatalogue | ||
#' | ||
#' @docType class | ||
#' @importFrom R6 R6Class | ||
#' @export | ||
#' @keywords ISO feature catalogue | ||
#' @return Object of \code{\link{R6Class}} for modelling a ISO abstract feature catalogue | ||
#' @format \code{\link{R6Class}} object. | ||
#' | ||
#' @references | ||
#' - ISO 19115-3 \url{https://schemas.isotc211.org/19110/-/fcc/2.2/fcc/#element_Abstract_FeatureCatalogue} | ||
#' | ||
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com> | ||
#' | ||
ISoAbstractFeatureCatalogue <- R6Class("ISoAbstractFeatureCatalogue", | ||
inherit = ISOAbstractCatalogue, | ||
private = list( | ||
xmlElement = "Abstract_FeatureCatalogue", | ||
xmlNamespacePrefix = list( | ||
"19115-3" = "FCC" | ||
) | ||
), | ||
public = list( | ||
|
||
#'@description Initializes object | ||
#'@param xml object of class \link{XMLInternalNode-class} | ||
initialize = function(xml = NULL){ | ||
super$initialize(xml = xml) | ||
} | ||
) | ||
) |
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,31 @@ | ||
#' ISOAbstractFeatureType | ||
#' | ||
#' @docType class | ||
#' @importFrom R6 R6Class | ||
#' @export | ||
#' @keywords ISO feature type | ||
#' @return Object of \code{\link{R6Class}} for modelling a ISO abstract feature type | ||
#' @format \code{\link{R6Class}} object. | ||
#' | ||
#' @references | ||
#' - ISO 19115-3 \url{https://schemas.isotc211.org/19110/-/fcc/2.2/fcc/#element_Abstract_FeatureType} | ||
#' | ||
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com> | ||
#' | ||
ISOAbstractFeatureType <- R6Class("ISOAbstractFeatureType", | ||
inherit = ISOAbstractObject, | ||
private = list( | ||
xmlElement = "Abstract_FeatureType", | ||
xmlNamespacePrefix = list( | ||
"19115-3" = "FCC" | ||
) | ||
), | ||
public = list( | ||
|
||
#'@description Initializes object | ||
#'@param xml object of class \link{XMLInternalNode-class} | ||
initialize = function(xml = NULL){ | ||
super$initialize(xml = xml) | ||
} | ||
) | ||
) |
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,86 @@ | ||
#' ISOAttributeGroup | ||
#' | ||
#' @docType class | ||
#' @importFrom R6 R6Class | ||
#' @export | ||
#' @keywords ISO attribute group | ||
#' @return Object of \code{\link{R6Class}} for modelling a ISO attribute group | ||
#' @format \code{\link{R6Class}} object. | ||
#' | ||
#' @references | ||
#' - ISO 19115-3 \url{https://schemas.isotc211.org/19115/-3/mrc/1.0/mrc/#element_MD_AttributeGroup} | ||
#' | ||
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com> | ||
#' | ||
ISOAttributeGroup <- R6Class("ISOAttributeGroup", | ||
inherit = ISOAbstractObject, | ||
private = list( | ||
xmlElement = "MD_AttributeGroup", | ||
xmlNamespacePrefix = list( | ||
"19115-3" = "MRC" | ||
) | ||
), | ||
public = list( | ||
|
||
#'@field contentType contentType [1..*] : ISOCoverageContentType | ||
contentType = list(), | ||
#'@field attribute attribute [0..*] : ISORangeDimension | ||
attribute = list(), | ||
|
||
#'@description Initializes object | ||
#'@param xml object of class \link{XMLInternalNode-class} | ||
initialize = function(xml = NULL){ | ||
super$initialize(xml = xml) | ||
}, | ||
|
||
#'@description Adds coverage content type | ||
#'@param contentType contentType object of class \link{ISOCoverageContentType} or any value among | ||
#'values listed in \code{ISOCoverageContentType$values()} | ||
#'@return \code{TRUE} if added, \code{FALSe} otherwise | ||
addContentType = function(contentType){ | ||
if(!is(contentType, "ISOCoverageContentType")){ | ||
if(is(contentType, "character")){ | ||
contentType = ISOCoverageContentType$new(value = contentType) | ||
}else{ | ||
stop("The argument should be an object of class 'ISOCoverageContentType' or 'character'") | ||
} | ||
} | ||
return(self$addListElement("contentType", contentType)) | ||
}, | ||
|
||
#'@description Deletes coverage content type | ||
#'@param contentType contentType object of class \link{ISOCoverageContentType} or any value among | ||
#'values listed in \code{ISOCoverageContentType$values()} | ||
#'@return \code{TRUE} if deleted, \code{FALSe} otherwise | ||
delContentType = function(contentType){ | ||
if(!is(contentType, "ISOCoverageContentType")){ | ||
if(is(contentType, "character")){ | ||
contentType = ISOCoverageContentType$new(value = contentType) | ||
}else{ | ||
stop("The argument should be an object of class 'ISOCoverageContentType' or 'character'") | ||
} | ||
} | ||
return(self$delListElement("contentType", contentType)) | ||
}, | ||
|
||
#'@description Adds attribute | ||
#'@param attribute object of class \link{ISORangeDimension} | ||
#'@return \code{TRUE} if added, \code{FALSe} otherwise | ||
addAttribute = function(attribute){ | ||
if(!is(attribute, "ISORangeDimension")){ | ||
stop("The argument should be an object of class 'ISORangeDimension'") | ||
} | ||
return(self$addListElement("attribute", attribute)) | ||
}, | ||
|
||
#'@description Deletes attribute | ||
#'@param attribute object of class \link{ISORangeDimension} | ||
#'@return \code{TRUE} if deleted, \code{FALSe} otherwise | ||
delAttribute = function(attribute){ | ||
if(!is(attribute, "ISORangeDimension")){ | ||
stop("The argument should be an object of class 'ISORangeDimension'") | ||
} | ||
return(self$delListElement("attribute", attribute)) | ||
} | ||
) | ||
) |
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,51 @@ | ||
#' ISOFeatureTypeInfo | ||
#' | ||
#' @docType class | ||
#' @importFrom R6 R6Class | ||
#' @export | ||
#' @keywords ISO feature type info | ||
#' @return Object of \code{\link{R6Class}} for modelling a ISO feature type info | ||
#' @format \code{\link{R6Class}} object. | ||
#' | ||
#' @references | ||
#' - ISO 19115-3 \url{https://schemas.isotc211.org/19115/-3/mrc/1.0/mrc/#element_MD_FeatureTypeInfo} | ||
#' | ||
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com> | ||
#' | ||
ISOFeatureTypeInfo <- R6Class("ISOFeatureTypeInfo", | ||
inherit = ISOAbstractObject, | ||
private = list( | ||
xmlElement = "MD_FeatureTypeInfo", | ||
xmlNamespacePrefix = list( | ||
"19115-3" = "MRC" | ||
) | ||
), | ||
public = list( | ||
|
||
#'@field featureTypeName featureTypeName [1..1] : ISOFeatureTypeInfo | ||
featureTypeName = NULL, | ||
#'@field featureInstanceCount featureInstanceCount [0..1]: Integer | ||
featureInstanceCount = NULL, | ||
|
||
#'@description Initializes object | ||
#'@param xml object of class \link{XMLInternalNode-class} | ||
initialize = function(xml = NULL){ | ||
super$initialize(xml = xml) | ||
}, | ||
|
||
#'@description Set feature type Name | ||
#'@param name object of class \link{ISOGenericName} or \link{character} | ||
setFeatureTypeName = function(name){ | ||
if(!is(name, "ISOAbstractGenericName")){ | ||
name = ISOAbstractGenericName$new(value = name) | ||
} | ||
self$featureTypeName = name | ||
}, | ||
|
||
#'@description Set feature instance count | ||
#'@param count object of class \link{integer} | ||
setFeatureInstanceCount = function(count){ | ||
self$featureInstanceCount = as.integer(count) | ||
} | ||
) | ||
) |
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,54 @@ | ||
#' ISOMDFeatureCatalogue | ||
#' | ||
#' @docType class | ||
#' @importFrom R6 R6Class | ||
#' @export | ||
#' @keywords ISO feature catalogue | ||
#' @return Object of \code{\link{R6Class}} for modelling a ISO feature catalogue | ||
#' @format \code{\link{R6Class}} object. | ||
#' | ||
#' @references | ||
#' - ISO 19115-3 \url{https://schemas.isotc211.org/19115/-3/mrc/1.0/mrc/#element_MD_FeatureCatalogue} | ||
#' | ||
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com> | ||
#' | ||
ISOMDFeatureCatalogue <- R6Class("ISOMDFeatureCatalogue", | ||
inherit = ISOAbstractContentInformation, | ||
private = list( | ||
xmlElement = "MD_FeatureCatalogue", | ||
xmlNamespacePrefix = list( | ||
"19115-3" = "MRC" | ||
) | ||
), | ||
public = list( | ||
|
||
#'@field featureCatalogue featureCatalogue [1..*] : ISOAbstractFeatureCatalogue | ||
featureCatalogue = list(), | ||
|
||
#'@description Initializes object | ||
#'@param xml object of class \link{XMLInternalNode-class} | ||
initialize = function(xml = NULL){ | ||
super$initialize(xml = xml) | ||
}, | ||
|
||
#'@description Adds feature catalogue | ||
#'@param featureCatalogue object inheriting class \link{ISOAbstractFeatureCatalogue} | ||
#'@return \code{TRUE} if added, \code{FALSe} otherwise | ||
addFeatureCatalogue = function(featureCatalogue){ | ||
if(!is(featureCatalogue, "ISOAbstractFeatureCatalogue")){ | ||
stop("The argument should be an object of class 'ISOAbstractFeatureCatalogue'") | ||
} | ||
return(self$addListElement("featureCatalogue", featureCatalogue)) | ||
}, | ||
|
||
#'@description Adds feature catalogue | ||
#'@param featureCatalogue object inheriting class \link{ISOAbstractFeatureCatalogue} | ||
#'@return \code{TRUE} if deleted, \code{FALSe} otherwise | ||
delFeatureCatalogue = function(featureCatalogue){ | ||
if(!is(featureCatalogue, "ISOAbstractFeatureCatalogue")){ | ||
stop("The argument should be an object of class 'ISOAbstractFeatureCatalogue'") | ||
} | ||
return(self$delListElement("featureCatalogue", featureCatalogue)) | ||
} | ||
) | ||
) |
Oops, something went wrong.