ISOSpatialTemporalExtent

ISOSpatialTemporalExtent

Format

R6Class object.

Value

Object of R6Class for modelling an ISO SpatialTemporalExtent

References

ISO 19115:2003 - Geographic information – Metadata

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Super classes

geometa::geometaLogger -> geometa::ISOAbstractObject -> geometa::ISOTemporalExtent -> ISOSpatialTemporalExtent

Public fields

spatialExtent

spatialExtent [1..*]: ISOGeographicExtent

Methods

Inherited methods


Method new()

Initializes object

Usage

ISOSpatialTemporalExtent$new(xml = NULL)

Arguments

xml

object of class XMLInternalNode-class


Method addSpatialExtent()

Adds spatial extent

Usage

ISOSpatialTemporalExtent$addSpatialExtent(spatialExtent)

Arguments

spatialExtent

object of class ISOGeographicExtent

Returns

TRUE if added, FALSE otherwise


Method delSpatialExtent()

Deletes spatial extent

Usage

ISOSpatialTemporalExtent$delSpatialExtent(spatialExtent)

Arguments

spatialExtent

object of class ISOGeographicExtent

Returns

TRUE if deleted, FALSE otherwise


Method clone()

The objects of this class are cloneable with this method.

Usage

ISOSpatialTemporalExtent$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

  #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$addSpatialExtent(spatialExtent)
#> [1] TRUE
  
  xml <- md$encode()
#> [geometa][INFO] Object 'ISOSpatialTemporalExtent' is VALID according to ISO 19139 XML schemas!