Learn R Programming

geometa (version 0.6-2)

ISOTemporalExtent: ISOTemporalExtent

Description

ISOTemporalExtent

Usage

ISOTemporalExtent

Arguments

Value

Object of R6Class for modelling an ISO TemporalExtent

Format

R6Class object.

Fields

extent

[GMLTimeInstant|GMLTimePeriod] the temporal extent (instant or period)

Methods

new(xml)

This method is used to instantiate an ISOTemporalExtent

setTimeInstant(timeInstant)

Sets a time instant, object of class GMLTimeInstant

setTimePeriod(timePeriod)

Sets a time period, object of class GMLTimePeriod

References

ISO 19115:2003 - Geographic information -- Metadata

Examples

Run this code
# NOT RUN {
   te <- ISOTemporalExtent$new()
   start <- ISOdate(2000, 1, 12, 12, 59, 45)
   end <- ISOdate(2010, 8, 22, 13, 12, 43)
   tp <- GMLTimePeriod$new(beginPosition = start, endPosition = end)
   te$setTimePeriod(tp)

# }

Run the code above in your browser using DataLab