ISOImageryPlatformPass

ISOImageryPlatformPass

Format

R6Class object.

Value

Object of R6Class for modelling an ISO imagery PlatformPass

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Super classes

geometa::geometaLogger -> geometa::ISOAbstractObject -> ISOImageryPlatformPass

Public fields

identifier

identifier [1..1]: ISOMetaIdentifier

extent

extent [0..1]: ?

relatedEvent

relatedEvent [0..*]: ISOImageryEvent

Methods

Inherited methods


Method new()

Initializes object

Usage

ISOImageryPlatformPass$new(xml = NULL)

Arguments

xml

object of class XMLInternalNode-class


Method setIdentifier()

Set identifier

Usage

ISOImageryPlatformPass$setIdentifier(identifier)

Arguments

identifier

object of class ISOMetaIdentifier or character


Method setExtent()

Set extent

Usage

ISOImageryPlatformPass$setExtent(extent)

Arguments

extent

simple feature geometry object from sf


Method addEvent()

Adds event

Usage

ISOImageryPlatformPass$addEvent(event)

Arguments

event

object of class ISOImageryEvent

Returns

TRUE if added, FALSE otherwise


Method delEvent()

Deletes event

Usage

ISOImageryPlatformPass$delEvent(event)

Arguments

event

object of class ISOImageryEvent

Returns

TRUE if deleted, FALSE otherwise


Method clone()

The objects of this class are cloneable with this method.

Usage

ISOImageryPlatformPass$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

   md <- ISOImageryPlatformPass$new()
   md$setIdentifier("identifier")
   
   require(sf)
   outer = matrix(c(0,0,10,0,10,10,0,10,0,0),ncol=2, byrow=TRUE)
   hole1 = matrix(c(1,1,1,2,2,2,2,1,1,1),ncol=2, byrow=TRUE)
   hole2 = matrix(c(5,5,5,6,6,6,6,5,5,5),ncol=2, byrow=TRUE)
   pts = list(outer, hole1, hole2)
   pl = st_polygon(pts)
   md$setExtent(pl)
   
   xml <- md$encode()
#> [geometa][WARN] Element '{http://www.isotc211.org/2005/gmi}MI_PlatformPass': No matching global declaration available for the validation root at line 1. 
#> [geometa][WARN] Object 'ISOImageryPlatformPass' is INVALID according to ISO 19139 XML schemas!