Learn R Programming

geometa (version 0.7)

ISOConformanceResult: ISOConformanceResult

Description

ISOConformanceResult

Arguments

Value

Object of R6Class for modelling an ISO ConformanceResult

Format

R6Class object.

Fields

specification

[ISOCitation] specification citation

explanation

[character] explanation about conformance

pass

[logical] if the conformance is passing or not

Methods

new(xml,value)

This method is used to instantiate an ISOConformanceResult

setSpecification(specification)

Sets the specification (an ISOCitation object)

setExplanation(explanation, locales)

Sets the explanation. Locale names can be specified as list with the locales argument.

setPass(pass)

Sets if passing the conformance or not (logical value)

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

References

ISO 19115:2003 - Geographic information -- Metadata

Examples

Run this code
 md <- ISOConformanceResult$new()
 spec <- ISOCitation$new()
 spec$setTitle("specification title")
 spec$addAlternateTitle("specification alternate title")
 d <- ISODate$new()
 d$setDate(ISOdate(2015, 1, 1, 1))
 d$setDateType("publication")
 spec$addDate(d)
 md$setSpecification(spec)
 md$setExplanation("some explanation about the conformance")
 md$setPass(TRUE)
 xml <- md$encode()
 

Run the code above in your browser using DataLab