Last chance! 50% off unlimited learning
Sale ends in
ISOFeatureAttribute
Object of R6Class
for modelling an ISOFeatureAttribute
R6Class
object.
code
valueMeasurementUnit
valueType
listedValue
new(xml)
This method is used to instantiate an ISOFeatureAttribute
setCode(code, locales)
Sets the code. Locale names can be specified as list
with the locales
argument.
setValueMeasurementUnit(uom)
Sets the value measurement unit, an object of class GMLUnitDefinition
setValueType(typeName, locales)
Sets the value type. Locale names can be specified as list
with the locales
argument.
addListedValue(value)
Adds a listed value (object of class ISOListedValue)
delListedValue(value)
Deletes a listed value (object of class ISOListedValue)
ISO 19110:2005 Methodology for Feature cataloguing
# NOT RUN {
md <- ISOFeatureAttribute$new()
md$setMemberName("name")
md$setDefinition("definition")
md$setCardinality(lower=1,upper=1)
md$setCode("code")
gml <- GMLBaseUnit$new(id = "ID")
gml$setDescriptionReference("someref")
gml$setIdentifier("identifier", "codespace")
gml$addName("name1", "codespace")
gml$addName("name2", "codespace")
gml$setQuantityTypeReference("someref")
gml$setCatalogSymbol("symbol")
gml$setUnitsSystem("somelink")
md$setValueMeasurementUnit(gml)
val1 <- ISOListedValue$new()
val1$setCode("code1")
val1$setLabel("label1")
val1$setDefinition("definition1")
md$addListedValue(val1)
val2 <- ISOListedValue$new()
val2$setCode("code2")
val2$setLabel("label2")
val2$setDefinition("definition2")
md$addListedValue(val2)
md$setValueType("typeName")
# }
Run the code above in your browser using DataLab