Learn R Programming

geometa (version 0.6-2)

GMLUnitDefinition: GMLUnitDefinition

Description

GMLUnitDefinition

Usage

GMLUnitDefinition

Arguments

Value

Object of R6Class for modelling an GML unit definition

Format

R6Class object.

Fields

quantityTypeReference

[character]

catalogSymbol

[character]

Methods

new(xml, defaults, id)

This method is used to instantiate a GML Definition

setQuantityTypeReference(ref)

Set the quantity type reference. The content is a reference to a remote value

setCatalogSymbol(symbol)

Sets the preferred lexical symbol used for this unit of measure

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 <- GMLUnitDefinition$new()
  gml$setDescriptionReference("someref")
  gml$setIdentifier("identifier", "codespace")
  gml$addName("name1", "codespace")
  gml$addName("name2", "codespace")
  gml$setQuantityTypeReference("someref")
  gml$setCatalogSymbol("symbol")

# }

Run the code above in your browser using DataLab