GMLConventionalUnit | R Documentation |
GMLConventionalUnit
GMLConventionalUnit
R6Class
object.
Object of R6Class
for modelling an GML derived unit
geometa::geometaLogger
-> geometa::ISOAbstractObject
-> geometa::GMLAbstractObject
-> geometa::GMLAbstractGML
-> geometa::GMLDefinition
-> geometa::GMLUnitDefinition
-> GMLConventionalUnit
conversionToPreferredUnit
conversionToPreferredUnit [1..1]: character/integer
roughConversionToPreferredUnit
roughConversionToPreferredUnit [1..1]: character/integer
derivationUnitTerm
derivationUnitTerm [1..*]: character
geometa::geometaLogger$ERROR()
geometa::geometaLogger$INFO()
geometa::geometaLogger$WARN()
geometa::ISOAbstractObject$addFieldAttrs()
geometa::ISOAbstractObject$addListElement()
geometa::ISOAbstractObject$checkMetadataStandardCompliance()
geometa::ISOAbstractObject$contains()
geometa::ISOAbstractObject$createLocalisedProperty()
geometa::ISOAbstractObject$decode()
geometa::ISOAbstractObject$delListElement()
geometa::ISOAbstractObject$encode()
geometa::ISOAbstractObject$getClass()
geometa::ISOAbstractObject$getClassName()
geometa::ISOAbstractObject$getNamespaceDefinition()
geometa::ISOAbstractObject$isDocument()
geometa::ISOAbstractObject$isFieldInheritedFrom()
geometa::ISOAbstractObject$print()
geometa::ISOAbstractObject$save()
geometa::ISOAbstractObject$setAttr()
geometa::ISOAbstractObject$setCodeList()
geometa::ISOAbstractObject$setCodeListValue()
geometa::ISOAbstractObject$setCodeSpace()
geometa::ISOAbstractObject$setHref()
geometa::ISOAbstractObject$setId()
geometa::ISOAbstractObject$setIsNull()
geometa::ISOAbstractObject$setValue()
geometa::ISOAbstractObject$stopIfMetadataStandardIsNot()
geometa::ISOAbstractObject$validate()
geometa::ISOAbstractObject$wrapBaseElement()
geometa::GMLAbstractGML$addName()
geometa::GMLAbstractGML$delName()
geometa::GMLAbstractGML$setDescription()
geometa::GMLAbstractGML$setDescriptionReference()
geometa::GMLAbstractGML$setIdentifier()
geometa::GMLDefinition$addRemark()
geometa::GMLDefinition$delRemark()
geometa::GMLUnitDefinition$setCatalogSymbol()
geometa::GMLUnitDefinition$setQuantityTypeReference()
new()
Initializes object
GMLConventionalUnit$new(xml = NULL, defaults = list(), id = NULL)
xml
object of class XMLInternalNode-class
defaults
default values
id
id
addDerivationUnitTerm()
Adds a derivation unit term, made of a uom reference, and an exponent which can be negative/positive but not equal to zero.
GMLConventionalUnit$addDerivationUnitTerm(uom, exponent)
uom
unit of measure reference
exponent
exponent
TRUE
if added, FALSE otherwise
delDerivationUnitTerm()
Deletes a derivation unit term
GMLConventionalUnit$delDerivationUnitTerm(uom, exponent)
uom
unit of measure reference
exponent
exponent
TRUE
if deleted, FALSE otherwise
setConversionToPreferredUnit()
Sets the conversion to preferred unit.
GMLConventionalUnit$setConversionToPreferredUnit(uom, factor, rough = FALSE)
uom
unit of measure reference
factor
factor
rough
rough . Defaut is FALSE
clone()
The objects of this class are cloneable with this method.
GMLConventionalUnit$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
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
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.