GMLDerivedUnit function

GMLDerivedUnit

GMLDerivedUnit

GMLDerivedUnit

GMLDerivedUnit class

Format

R6Class object.

Returns

Object of R6Class for modelling an GML derived unit

Examples

gml <- GMLDerivedUnit$new() gml$setDescriptionReference("someref") gml$setIdentifier("identifier", "codespace") gml$addName("name2", "codespace") gml$setQuantityTypeReference("someref") gml$setCatalogSymbol("symbol") gml$addDerivationUnitTerm("uomId", 2L)

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

Author(s)

Emmanuel Blondel emmanuel.blondel1@gmail.com

Super classes

geometa::geometaLogger -> geometa::ISOAbstractObject -> geometa::GMLAbstractObject -> geometa::GMLAbstractGML -> geometa::GMLDefinition -> geometa::GMLUnitDefinition -> GMLDerivedUnit

Public fields

  • derivationUnitTerm: derivationUnitTerm [1..*]: character

Methods

Public methods

Method new()

Initializes object

Usage

GMLDerivedUnit$new(xml = NULL, defaults = list(), id = NULL)

Arguments

  • xml: object of class XMLInternalNode-class

  • defaults: default values

  • id: id

Method addDerivationUnitTerm()

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

Usage

GMLDerivedUnit$addDerivationUnitTerm(uom, exponent)

Arguments

  • uom: unit of measure reference

  • exponent: exponent

Returns

TRUE if added, FALSE otherwise

Method delDerivationUnitTerm()

Deletes a derivation unit term.

Usage

GMLDerivedUnit$delDerivationUnitTerm(uom, exponent)

Arguments

  • uom: unit of measure reference

  • exponent: exponent

Returns

TRUE if deleted, FALSE otherwise

Method clone()

The objects of this class are cloneable with this method.

Usage

GMLDerivedUnit$clone(deep = FALSE)

Arguments

  • deep: Whether to make a deep clone.

  • Maintainer: Emmanuel Blondel
  • License: MIT + file LICENSE
  • Last published: 2025-01-29