Learn R Programming

geometa (version 0.4-0)

ISOSpatialTemporalExtent: ISOSpatialTemporalExtent

Description

ISOSpatialTemporalExtent

Usage

ISOSpatialTemporalExtent

Arguments

Value

Object of R6Class for modelling an ISO SpatialTemporalExtent

Format

R6Class object.

Methods

new(xml)

This method is used to instantiate an ISOTemporalExtent

addSpatialExtent(spatialExtent)

Adds an object of class ISOGeographicExtent

setSpatialExtent(spatialExtent)

Sets an object of class ISOGeographicExtent

delSpatialExtent(spatialExtent)

Deletes an object of class ISOGeographicExtent

References

ISO 19115:2003 - Geographic information -- Metadata

Examples

Run this code
# NOT RUN {
  #create object
  md <- ISOSpatialTemporalExtent$new()
  start <- ISOdate(2000, 1, 12, 12, 59, 45)
  end <- ISOdate(2010, 8, 22, 13, 12, 43)
  tp <- GMLTimePeriod$new(beginPosition = start, endPosition = end)
  md$setTimePeriod(tp)
  spatialExtent <- ISOGeographicBoundingBox$new(minx = -180, miny = -90, maxx = 180, maxy = 90)
  md$setSpatialExtent(spatialExtent)
  
  xml <- md$encode()
  
# }

Run the code above in your browser using DataLab