Learn R Programming

geometa (version 0.4-0)

ISOContact: ISOContact

Description

ISOContact

Usage

ISOContact

Arguments

Value

Object of R6Class for modelling an ISO Contact

Format

R6Class object.

Fields

onlineResource

Methods

new(xml)

This method is used to instantiate an ISOContact

setPhone(phone)

Sets the phone contact

setAddress(address)

Sets the address contact

setOnlineResource(onlineResource)

Sets the online resource

References

ISO 19115:2003 - Geographic information -- Metadata

Examples

Run this code
# NOT RUN {
 md <- ISOContact$new()
 phone <- ISOTelephone$new()
 phone$setVoice("myphonenumber")
 phone$setFacsimile("myfacsimile")
 md$setPhone(phone)
 address <- ISOAddress$new()
 address$setDeliveryPoint("theaddress")
 address$setCity("thecity")
 address$setPostalCode("111")
 address$setCountry("France")
 address$setEmail("someone@theorg.org")
 md$setAddress(address)
 res <- ISOOnlineResource$new()
 res$setLinkage("http://www.somewhereovertheweb.org")
 res$setName("somename")
 md$setOnlineResource(res)
 xml <- md$encode()
 
# }

Run the code above in your browser using DataLab