Learn R Programming

geometa (version 0.6-2)

GMLDerivedUnit: GMLDerivedUnit

Description

GMLDerivedUnit

Usage

GMLDerivedUnit

Arguments

Value

Object of R6Class for modelling an GML derived unit

Format

R6Class object.

Fields

derivationUnitTerm

Methods

new(xml, defaults, id)

This method is used to instantiate a GML Base Unit

addDerivationUnitTerm(uom, exponent)

Adds a derivation unit term, made of a uom reference, and an exponent which can be negative/positive but not equal to zero.

delDerivationUnitTerm(uom, exponent)

Deletes a derivation unit term

References

ISO 19136:2007 Geographic Information -- Geographic Markup Language. http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=32554

OGC Geography Markup Language. http://www.opengeospatial.org/standards/gml

Examples

Run this code
# NOT RUN {
  gml <- GMLDerivedUnit$new()
  gml$setDescriptionReference("someref")
  gml$setIdentifier("identifier", "codespace")
  gml$addName("name2", "codespace")
  gml$setQuantityTypeReference("someref")
  gml$setCatalogSymbol("symbol")
  gml$addDerivationUnitTerm("uomId", 2L)

# }

Run the code above in your browser using DataLab