ISOSource

ISOSource

Format

R6Class object.

Value

Object of R6Class for modelling an ISO Source

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Super classes

geometa::geometaLogger -> geometa::ISOAbstractObject -> ISOSource

Public fields

description

description [0..1]: character

scaleDenominator

scaleDenominator [0..1]: ISORepresentativeFraction

sourceReferenceSystem

sourceReferenceSystem [0..1]: ISOReferenceSystem

sourceCitation

sourceCitation [0..1]: ISOCitation

sourceExtent

sourceExtent [0..*]: ISOExtent

sourceStep

sourceStep [0..*]: ISOProcessStep

Methods

Inherited methods


Method new()

Initializes object

Usage

ISOSource$new(xml = NULL)

Arguments

xml

object of class XMLInternalNode-class


Method setDescription()

Set description

Usage

ISOSource$setDescription(description, locales = NULL)

Arguments

description

description

locales

list of localized texts. Default is NULL


Method setScaleDenominator()

Set scale denominator

Usage

ISOSource$setScaleDenominator(denominator)

Arguments

denominator

object of class ISORepresentativeFraction


Method setReferenceSystem()

Set reference system

Usage

ISOSource$setReferenceSystem(referenceSystem)

Arguments

referenceSystem

object of class ISOReferenceSystem


Method setCitation()

Set citation

Usage

ISOSource$setCitation(citation)

Arguments

citation

object of class ISOCitation


Method addExtent()

Adds extent

Usage

ISOSource$addExtent(extent)

Arguments

extent

object of class ISOExtent

Returns

TRUE if added, FALSE otherwise


Method delExtent()

Deletes extent

Usage

ISOSource$delExtent(extent)

Arguments

extent

object of class ISOExtent

Returns

TRUE if deleted, FALSE otherwise


Method addProcessStep()

Adds process step

Usage

ISOSource$addProcessStep(processStep)

Arguments

processStep

object of class ISOProcessStep

Returns

TRUE if added, FALSE otherwise


Method delProcessStep()

Deletes process step

Usage

ISOSource$delProcessStep(processStep)

Arguments

processStep

object of class ISOProcessStep

Returns

TRUE if deleted, FALSE otherwise


Method clone()

The objects of this class are cloneable with this method.

Usage

ISOSource$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

  src <- ISOSource$new()
  src$setDescription("description")
  src$setScaleDenominator(1L)
  
  rs <- ISOReferenceSystem$new()
  rsId <- ISOReferenceIdentifier$new(code = "4326", codeSpace = "EPSG")
  rs$setReferenceSystemIdentifier(rsId)
  src$setReferenceSystem(rs)
  
  cit <- ISOCitation$new()
  cit$setTitle("sometitle") #and more citation properties...
  src$setCitation(cit)
  
  extent <- ISOExtent$new()
  bbox <- ISOGeographicBoundingBox$new(minx = -180, miny = -90, maxx = 180, maxy = 90)
  extent$setGeographicElement(bbox)
#> Warning: Method 'setGeographicElement' is deprecated, please use 'addGeographicElement'!
#> [1] TRUE
  src$addExtent(extent)
#> [1] TRUE
  xml <- src$encode()
#> [geometa][WARN] Element '{http://www.isotc211.org/2005/gmd}CI_Citation': Missing child element(s). Expected is one of ( {http://www.isotc211.org/2005/gmd}alternateTitle, {http://www.isotc211.org/2005/gmd}date ) at line 27. 
#> [geometa][WARN] Object 'ISOSource' is INVALID according to ISO 19139 XML schemas!