SWETextEncoding

SWETextEncoding

Format

R6Class object.

Value

Object of R6Class for modelling an SWE text encoding object

References

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

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Methods

Inherited 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.