SWETextEncoding function

SWETextEncoding

SWETextEncoding

SWETextEncoding

SWETextEncoding class

Format

R6Class object.

Returns

Object of R6Class for modelling an SWE text encoding object

References

SWE Common Data Model Encoding Standard. https://www.ogc.org/standards/swecommon

Author(s)

Emmanuel Blondel emmanuel.blondel1@gmail.com

Super classes

geometa::geometaLogger -> geometa::ISOAbstractObject -> geometa::SWEAbstractObject -> geometa::SWEAbstractSWE -> geometa::SWEAbstractEncoding -> SWETextEncoding

Methods

Public methods

Method new()

Initializes a SWE Text Encoding element

Usage

SWETextEncoding$new(
  xml = NULL,
  collapseWhiteSpaces = TRUE,
  decimalSeparator = ".",
  tokenSeparator = NULL,
  blockSeparator = NULL
)

Arguments

  • xml: object of class XMLInternalNode-class from XML

  • collapseWhiteSpaces: Indicates whether white spaces (i.e. space, tab, CR, LF) should be collapsed with separators when parsing the data stream. Default is TRUE

  • decimalSeparator: Character used as the decimal separator. Default is TRUE

  • tokenSeparator: Character sequence used as the token separator (i.e. between two successive values). Required

  • blockSeparator: Character sequence used as the block separator (i.e. between two successive blocks in the data set. The end of a block is reached once all values from the data tree have been encoded once). Required

Method clone()

The objects of this class are cloneable with this method.

Usage

SWETextEncoding$clone(deep = FALSE)

Arguments

  • deep: Whether to make a deep clone.

  • Maintainer: Emmanuel Blondel
  • License: MIT + file LICENSE
  • Last published: 2025-01-29