
Last chance! 50% off unlimited learning
Sale ends in
GMLConventionalUnit
Object of R6Class
for modelling an GML derived unit
R6Class
object.
conversionToPreferredUnit
roughConversionToPreferredUnit
derivationUnitTerm
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
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
# 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