Learn R Programming

geometa (version 0.6-2)

GMLConventionalUnit: GMLConventionalUnit

Description

GMLConventionalUnit

Usage

GMLConventionalUnit

Arguments

Value

Object of R6Class for modelling an GML derived unit

Format

R6Class object.

Fields

conversionToPreferredUnit

[GMLElement]

roughConversionToPreferredUnit

[GMLElement]

derivationUnitTerm

[GMLElement]

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

setConversionToPreferredUnit(uom, factor, rough)

Sets the conversion to preferred unit. rough is FALSE by default

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 <- GMLConventionalUnit$new()
   gml$setDescriptionReference("someref")
   gml$setIdentifier("identifier", "codespace")
   gml$addName("name1", "codespace")
   gml$addName("name2", "codespace")
   gml$setQuantityTypeReference("someref")
   gml$setCatalogSymbol("symbol")
   gml$addDerivationUnitTerm("uomId", 2L)
   gml$setConversionToPreferredUnit("uomId", 2L)

# }

Run the code above in your browser using DataLab