ISOGeoreferenceable

ISOGeoreferenceable

Format

R6Class object.

Value

Object of R6Class for modelling an ISO Georeferenceable

References

ISO 19115:2003 - Geographic information -- Metadata

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Public fields

controlPointAvailability

controlPointAvailability: logical

orientationParameterAvailability

orientationParameterAvailability : logical

orientationParameterDescription

orientationParameterDescription [0..1] : character

georeferencedParameters

georeferencedParameters : ISORecord

parameterCitation

parameterCitation [0..*] : ISOCitation

Methods

Inherited methods


Method new()

Initializes object

Usage

ISOGeoreferenceable$new(xml = NULL)

Arguments

xml

object of class XMLInternalNode-class


Method setControlPointAvailability()

Set control point availability

Usage

ISOGeoreferenceable$setControlPointAvailability(availability)

Arguments

availability

object of class logical


Method setOrientationParameterAvailability()

Set orientation parameter availability

Usage

ISOGeoreferenceable$setOrientationParameterAvailability(availability)

Arguments

availability

object of class logical


Method setOrientationParameterDescription()

Set orientation parameter description

Usage

ISOGeoreferenceable$setOrientationParameterDescription(
  description,
  locales = NULL
)

Arguments

description

description

locales

list of localized descriptions. Default is NULL


Method setGeoreferencedParameters()

Set georeferenced parameters

Usage

ISOGeoreferenceable$setGeoreferencedParameters(record)

Arguments

record

object of class ISORecord


Method addParameterCitation()

Adds parameter citation

Usage

ISOGeoreferenceable$addParameterCitation(citation)

Arguments

citation

object of class ISOCitation

Returns

TRUE if added, FALSE otherwise


Method delParameterCitation()

Deletes parameter citation

Usage

ISOGeoreferenceable$delParameterCitation(citation)

Arguments

citation

object of class ISOCitation

Returns

TRUE if deleted, FALSE otherwise


Method clone()

The objects of this class are cloneable with this method.

Usage

ISOGeoreferenceable$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

  md <- ISOGeoreferenceable$new()
  
  #inherited methods from ISOGridSpatialRepresentation
  md$setNumberOfDimensions(1)
  dim1 <- ISODimension$new()
  dim1$setName("row")
  dim1$setSize(100)
  dim1$setResolution(ISOMeasure$new(value=1,uom="m"))
  md$addDimension(dim1)
#> [1] TRUE
  md$setCellGeometry("area")
  
  #parameters
  md$setControlPointAvailability(TRUE)
  md$setOrientationParameterAvailability(TRUE)
  md$setOrientationParameterDescription("description")
  md$setGeoreferencedParameters("record")
  ct <- ISOCitation$new()
  ct$setTitle("citation")
  md$addParameterCitation(ct)
#> [1] TRUE
  
  xml <- md$encode()
#> [geometa][WARN] Element '{http://www.isotc211.org/2005/gmd}controlPointAvailability': This element is not expected. Expected is ( {http://www.isotc211.org/2005/gmd}transformationParameterAvailability ) at line 21. 
#> [geometa][WARN] Object 'ISOGeoreferenceable' is INVALID according to ISO 19139 XML schemas!