Learn R Programming

geometa (version 0.6-2)

ISOMetadataExtensionInformation: ISOMetadataExtensionInformation

Description

ISOMetadataExtensionInformation

Usage

ISOMetadataExtensionInformation

Arguments

Value

Object of R6Class for modelling an ISO MetadataExtensionInformation

Format

R6Class object.

Fields

extensionOnLineResource

[ISOOnlineResource] online resource

extendedElementInformation

[ISOExtendedElementInformation] extended element(s)

Methods

new(xml)

This method is used to instantiate an ISOMetadataExtensionInformation

setOnlineResource(onlineResource)

Sets an online resource (object of class ISOOnlineResource)

addElement(element)

Adds an element (object of class ISOExtendedElementInformation)

delElement(element)

Deletes an element (object of class ISOExtendedElementInformation)

References

ISO 19115:2003 - Geographic information -- Metadata

Examples

Run this code
# NOT RUN {
  #create an extended element information
  elem <- ISOExtendedElementInformation$new()
  elem$setName("name")
  elem$setShortName("shortName")
  elem$setDomainCode(1L)
  elem$setDefinition("some definition")
  elem$setObligation("mandatory")
  elem$setCondition("no condition")
  elem$setDatatype("characterString")
  elem$setMaximumOccurrence("string")
  elem$setDomainValue("value")
  elem$addParentEntity("none")
  elem$setRule("rule")
  elem$addRationale("rationale")
  rp <- ISOResponsibleParty$new()
  rp$setIndividualName("someone")
  rp$setOrganisationName("somewhere")
  rp$setPositionName("someposition")
  rp$setRole("pointOfContact")
  contact <- ISOContact$new()
  phone <- ISOTelephone$new()
  phone$setVoice("myphonenumber")
  phone$setFacsimile("myfacsimile")
  contact$setPhone(phone)
  address <- ISOAddress$new()
  address$setDeliveryPoint("theaddress")
  address$setCity("thecity")
  address$setPostalCode("111")
  address$setCountry("France")
  address$setEmail("someone@theorg.org")
  contact$setAddress(address)
  res <- ISOOnlineResource$new()
  res$setLinkage("http://www.somewhereovertheweb.org")
  res$setName("somename")
  contact$setOnlineResource(res)
  rp$setContactInfo(contact)
  elem$addSource(rp)
  
  md <- ISOMetadataExtensionInformation$new()
  md$addElement(elem)
  
  xml <- md$encode()
  
# }

Run the code above in your browser using DataLab