Learn R Programming

geometa (version 0.7)

ISOLegalConstraints: ISOLegalConstraints

Description

ISOLegalConstraints

Arguments

Value

Object of R6Class for modelling an ISO LegalConstraints

Format

R6Class object.

Fields

accessConstraints

[ISORestriction] access constraint(s)

useConstraints

[ISORestriction] use constraint(s)

otherConstraints

[character] other constraint(s)

Methods

new(xml)

This method is used to instantiate an ISOLegalConstraints

addAccessConstraint(constraint)

Adds an access constraint, as object of class "character" or class ISORestriction. If an object of class "character" is specified, it must match the accepted values given by ISORestriction$values().

delAccessConstraint(constraint)

Deletes an access constraint, as object of class "character" or class ISORestriction. If an object of class "character" is specified, it must match the accepted values given by ISORestriction$values().

addUseConstraint(constraint)

Adds a use constraint, as object of class "character" or class ISORestriction. If an object of class "character" is specified, it must match the accepted values given by ISORestriction$values().

delUseConstraint(constraint)

Deletes a use constraint, as object of class "character" or class ISORestriction. If an object of class "character" is specified, it must match the accepted values given by ISORestriction$values().

addOtherConstraint(constraint)

Adds an other constraint as object of class "character

delOtherConstraint(constraint)

Deletes an other constraint as object of class "character

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

References

ISO 19115:2003 - Geographic information -- Metadata

Examples

Run this code
  #create object
  md <- ISOLegalConstraints$new()
  md$addUseLimitation("limitation1")
  md$addUseLimitation("limitation2")
  md$addUseLimitation("limitation3")
  md$addAccessConstraint("copyright")
  md$addAccessConstraint("license")
  md$addUseConstraint("copyright")
  md$addUseConstraint("license")
  
  xml <- md$encode()
  

Run the code above in your browser using DataLab