Learn R Programming

geometa (version 0.7)

ISOLocale: ISOLocale

Description

ISOLocale

Arguments

Value

Object of R6Class for modelling an ISO Locale

Format

R6Class object.

Fields

languageCode

[ISOLanguage|character] language code

country

[ISOCountry|character] country code

characterEncoding

[ISOCharacterSet|character] character encoding

Methods

new(xml, code, country, encoding)

This method is used to instantiate an ISOLocale

setId(id)

Set the locale Id, to bind to ISOFreeText elements to identify a locale text.

setLanguage(language)

Set the language, object of class "character" (language code), or object of class ISOLanguage.

setCountry(country)

Set the country, object of class "character" (country code), or object of class ISOCountry.

setCharacterSet(charset)

Set the character encoding, object of class "character" (encoding code), or object of class ISOCharacterSet.

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

References

ISO 19115:2003 - Geographic information -- Metadata

Examples

Run this code
  loc <- ISOLocale$new()
  loc$setId("eng")
  loc$setLanguage("eng")
  loc$setCountry("UK")
  loc$setCharacterSet("utf8")
  

Run the code above in your browser using DataLab