GMLTimeInstant

GMLTimeInstant

Format

R6Class object.

Value

Object of R6Class for modelling an GMLTimeInstant

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Public fields

timePosition

[numeric|character|Date|POSIXt]

Methods

Inherited methods


Method new()

Initializes object

Usage

GMLTimeInstant$new(xml = NULL, timePosition)

Arguments

xml

object of class XMLInternalNode-class

timePosition

time position


Method setTimePosition()

Sets the position (date or date and time of the resource contents),

Usage

GMLTimeInstant$setTimePosition(timePosition)

Arguments

timePosition

object of class "numeric", "POSIXct"/"POSIXt" or "Date"


Method toISOFormat()

Export to ISO format (character)

Usage

GMLTimeInstant$toISOFormat()

Returns

a character in ISO format


Method clone()

The objects of this class are cloneable with this method.

Usage

GMLTimeInstant$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

  time <- ISOdate(2000, 1, 12, 12, 59, 45)
  md <- GMLTimeInstant$new(timePosition = time)
  xml <- md$encode()
#> [geometa][INFO] Object 'GMLTimeInstant' is VALID according to ISO 19139 XML schemas!