Learn R Programming

geometa (version 0.7)

ISOFeatureAttribute: ISOFeatureAttribute

Description

ISOFeatureAttribute

Arguments

Value

Object of R6Class for modelling an ISOFeatureAttribute

Format

R6Class object.

Fields

code

[character]

valueMeasurementUnit

[GMLUnitDefinition]

valueType

[character]

listedValue

[ISOListedValue]

Methods

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)

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

References

ISO 19110:2005 Methodology for Feature cataloguing

Examples

Run this code
  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