ISODistribution: ISODistribution

Description Usage Format Value Fields Methods Author(s) References Examples

Description

ISODistribution

Usage

1

Format

R6Class object.

Value

Object of R6Class for modelling an ISO Distribution

Fields

transferOptions

Methods

new(xml)

This method is used to instantiate an ISODistribution

addFormat(format)

Adds a distribution format, object of class ISOFormat

delFormat(format)

Deletes a distribution format, object of class ISOFormat

addDistributor(distributor)

Adds a distributor, object of class ISODistributor

delDistributor(distributor)

Deletes a distributor, object of class ISODistributor

setDigitalTransferOptions(options)

Sets the digital transfer options

Author(s)

Emmanuel Blondel <[email protected]>

References

ISO 19115:2003 - Geographic information – Metadata

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
md <- ISODistribution$new()

  dto <- ISODigitalTransferOptions$new()
  for(i in 1:3){
   or <- ISOOnlineResource$new()
   or$setLinkage(paste0("http://somelink",i))
   or$setName(paste0("name",i))
   or$setDescription(paste0("description",i))
   or$setProtocol("WWW:LINK-1.0-http--link")
   dto$addOnlineResource(or)
  }
  md$setDigitalTransferOptions(dto)

  xml <- md$encode()

geometa documentation built on Nov. 28, 2017, 5:05 p.m.