ISOImageryCoverageDescription: ISOImageryCoverageDescription

ISOImageryCoverageDescriptionR Documentation

ISOImageryCoverageDescription

Description

ISOImageryCoverageDescription

ISOImageryCoverageDescription

Format

R6Class object.

Value

Object of R6Class for modelling an ISO imagery image description

Super classes

geometa::geometaLogger -> geometa::ISOAbstractObject -> geometa::ISOAbstractContentInformation -> geometa::ISOCoverageDescription -> ISOImageryCoverageDescription

Public fields

rangeElementDescription

rangeElementDescription [0..*] : ISOImageryRangeElementDescription

Methods

Public methods

Inherited methods

Method new()

Initializes object

Usage
ISOImageryCoverageDescription$new(xml = NULL)
Arguments
xml

object of class XMLInternalNode-class


Method addRangeElementDescription()

Adds range element description

Usage
ISOImageryCoverageDescription$addRangeElementDescription(description)
Arguments
description

object of class ISOImageryRangeElementDescription

Returns

TRUE if added, FALSE otherwise


Method delRangeElementDescription()

Deletes range element description

Usage
ISOImageryCoverageDescription$delRangeElementDescription(description)
Arguments
description

object of class ISOImageryRangeElementDescription

Returns

TRUE if deleted, FALSE otherwise


Method clone()

The objects of this class are cloneable with this method.

Usage
ISOImageryCoverageDescription$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Author(s)

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

References

- 19139 https://schemas.isotc211.org/19115/-2/gmi/1.0/gmi/#element_MI_CoverageDescription

- 19115-3 https://schemas.isotc211.org/19115/-3/mrc/1.0/mrc/#element_MI_CoverageDescription

Examples

   #create coverage description
   md <- ISOImageryCoverageDescription$new()
   md$setAttributeDescription("test")
   md$setContentType("modelResult")
   
   #adding 3 arbitrary dimensions
   for(i in 1:3){
      band <- ISOBand$new()
      mn <- ISOMemberName$new(aName = sprintf("name %s",i), attributeType = sprintf("type %s",i))
      band$setSequenceIdentifier(mn)
      band$setDescriptor("descriptor")
      band$setMaxValue(10)
      band$setMinValue(1)
      gml <- GMLBaseUnit$new(id = sprintf("ID%s",i))
      gml$setDescriptionReference("someref")
      gml$setIdentifier("identifier", "codespace")
      gml$addName("name1", "codespace")
      gml$addName("name2", "codespace")
      gml$setQuantityTypeReference("someref")
      gml$setCatalogSymbol("symbol")
      gml$setUnitsSystem("somelink")
      band$setUnits(gml)
      band$setPeakResponse(9)
      band$setBitsPerValue(5)
      band$setToneGradation(100)
      band$setScaleFactor(1)
      band$setOffset(4)
      md$addDimension(band)
   }
   
   des <- ISOImageryRangeElementDescription$new()
   des$setName("name")
   des$setDefinition("description")
   des$addRangeElement("record1")
   des$addRangeElement("record2")
   md$addRangeElementDescription(des)
   xml <- md$encode()


eblondel/geometa documentation built on Oct. 10, 2024, 4:46 p.m.