Nothing
#' ISOMeasure
#'
#' @docType class
#' @importFrom R6 R6Class
#' @export
#' @keywords ISO measure
#' @return Object of \code{\link[R6]{R6Class}} for modelling an ISO Measure
#' @format \code{\link[R6]{R6Class}} object.
#'
#' @references
#' - ISO 19139 \url{https://schemas.isotc211.org/19139/-/gco/1.0/gco/#element_Measure}
#'
#' - ISO 19115-3 \url{https://schemas.isotc211.org/19115/-3/gco/1.0/gco/#element_Measure}
#'
#' @author Emmanuel Blondel <emmanuel.blondel1@@gmail.com>
#'
ISOMeasure <- R6Class("ISOMeasure",
inherit = ISOAbstractObject,
private = list(
xmlElement = "Measure",
xmlNamespacePrefix = list(
"19139" = "GCO",
"19115-3" = "GCO"
)
),
public = list(
#'@field value value
value = NA,
#'@field attrs attrs
attrs = list(),
#'@description Initializes object
#'@param xml object of class \link[XML]{XMLInternalNode-class}
#'@param value value
#'@param uom uom symbol of unit of measure used
#'@param useUomURI use uom URI. Default is \code{FALSE}
initialize = function(xml = NULL, value, uom, useUomURI = FALSE){
super$initialize(xml = xml)
if(is.null(xml)){
if(!is(value, "double")){
value <- as.double(value)
}
self$value = value
uomAttr <- uom
if(useUomURI & getMetadataStandard() == "19139"){
uomAttr <- sprintf("http://schemas.opengis.net/iso/19139/20070417/resources/uom/gmxUom.xml#xpointer(//*[@gml:id='%s'])", uomAttr)
}
self$attrs[["uom"]] <- uomAttr
}
}
)
)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.