ISOGridSpatialRepresentation

ISOGridSpatialRepresentation

Format

R6Class object.

Value

Object of R6Class for modelling an ISO GridSpatialRepresentation

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Public fields

numberOfDimensions

numberOfDimensions [1..1]: integer

axisDimensionProperties

axisDimensionProperties [1..*] : ISODimension

cellGeometry

cellGeometry [1..1]: ISOCellGeometry

transformationParameterAvailability

transformationParameterAvailability : logical

Methods

Inherited methods


Method new()

Initializes object

Usage

Arguments

xml

object of class XMLInternalNode-class


Method setNumberOfDimensions()

Set number of dimensions

Usage

ISOGridSpatialRepresentation$setNumberOfDimensions(numberOfDimensions)

Arguments

numberOfDimensions

object of class integer


Method addDimension()

Adds dimension

Usage

ISOGridSpatialRepresentation$addDimension(dimension)

Arguments

dimension

object of class ISODimension

Returns

TRUE if added, FALSE otherwise


Method delDimension()

Deletes dimension

Usage

ISOGridSpatialRepresentation$delDimension(dimension)

Arguments

dimension

object of class ISODimension

Returns

TRUE if deleted, FALSE otherwise


Method setCellGeometry()

Set cell geometry

Usage

ISOGridSpatialRepresentation$setCellGeometry(cellGeometry)

Arguments

cellGeometry

object of class ISOCellGeometry or any character among values returned by ISOCellGeometry$values()


Method setTransformationParameterAvailability()

Set transformation parameter availability

Usage

ISOGridSpatialRepresentation$setTransformationParameterAvailability(
  availability
)

Arguments

availability

object of class logical


Method clone()

The objects of this class are cloneable with this method.

Usage

ISOGridSpatialRepresentation$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

  md <- ISOGridSpatialRepresentation$new()
#> Error in super$initialize(xml, defaults = defaults): unused argument (defaults = defaults)
  md$setNumberOfDimensions(1)
#> Error: object 'md' not found
  dim1 <- ISODimension$new()
  dim1$setName("row")
  dim1$setSize(100)
  dim1$setResolution(ISOMeasure$new(value=1,uom="m"))
  md$addDimension(dim1)
#> Error: object 'md' not found
  md$setCellGeometry("area")
#> Error: object 'md' not found
  xml <- md$encode()
#> Error: object 'md' not found