Learn R Programming

geometa (version 0.6-2)

ISOConformanceResult: ISOConformanceResult

Description

ISOConformanceResult

Usage

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)

References

ISO 19115:2003 - Geographic information -- Metadata

Examples

Run this code
# NOT RUN {
 md <- ISOConformanceResult$new()
 spec <- ISOCitation$new()
 spec$setTitle("specification title")
 spec$setAlternateTitle("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