| ISOSource {geometa} | R Documentation |
ISOSource
Description
ISOSource
ISOSource
Format
R6Class object.
Value
Object of R6Class for modelling an ISO Source
Super classes
geometa::geometaLogger -> geometa::ISOAbstractObject -> ISOSource
Public fields
descriptiondescription [0..1]: character
scaleDenominatorscaleDenominator [0..1]: ISORepresentativeFraction
sourceReferenceSystemsourceReferenceSystem [0..1]: ISOReferenceSystem
sourceCitationsourceCitation [0..1]: ISOCitation
sourceExtentsourceExtent [0..*]: ISOExtent
sourceStepsourceStep [0..*]: ISOProcessStep
Methods
Public methods
Inherited methods
geometa::geometaLogger$ERROR()geometa::geometaLogger$INFO()geometa::geometaLogger$WARN()geometa::ISOAbstractObject$addFieldAttrs()geometa::ISOAbstractObject$addListElement()geometa::ISOAbstractObject$contains()geometa::ISOAbstractObject$createLocalisedProperty()geometa::ISOAbstractObject$decode()geometa::ISOAbstractObject$delListElement()geometa::ISOAbstractObject$encode()geometa::ISOAbstractObject$getClass()geometa::ISOAbstractObject$getClassName()geometa::ISOAbstractObject$getNamespaceDefinition()geometa::ISOAbstractObject$isDocument()geometa::ISOAbstractObject$isFieldInheritedFrom()geometa::ISOAbstractObject$print()geometa::ISOAbstractObject$save()geometa::ISOAbstractObject$setAttr()geometa::ISOAbstractObject$setCodeList()geometa::ISOAbstractObject$setCodeListValue()geometa::ISOAbstractObject$setCodeSpace()geometa::ISOAbstractObject$setHref()geometa::ISOAbstractObject$setId()geometa::ISOAbstractObject$setIsNull()geometa::ISOAbstractObject$setValue()geometa::ISOAbstractObject$validate()geometa::ISOAbstractObject$wrapBaseElement()
Method new()
Initializes object
Usage
ISOSource$new(xml = NULL)
Arguments
xmlobject of class XMLInternalNode-class
Method setDescription()
Set description
Usage
ISOSource$setDescription(description, locales = NULL)
Arguments
descriptiondescription
localeslist of localized texts. Default is
NULL
Method setScaleDenominator()
Set scale denominator
Usage
ISOSource$setScaleDenominator(denominator)
Arguments
denominatorobject of class ISORepresentativeFraction
Method setReferenceSystem()
Set reference system
Usage
ISOSource$setReferenceSystem(referenceSystem)
Arguments
referenceSystemobject of class ISOReferenceSystem
Method setCitation()
Set citation
Usage
ISOSource$setCitation(citation)
Arguments
citationobject of class ISOCitation
Method addExtent()
Adds extent
Usage
ISOSource$addExtent(extent)
Arguments
extentobject of class ISOExtent
Returns
TRUE if added, FALSE otherwise
Method delExtent()
Deletes extent
Usage
ISOSource$delExtent(extent)
Arguments
extentobject of class ISOExtent
Returns
TRUE if deleted, FALSE otherwise
Method addProcessStep()
Adds process step
Usage
ISOSource$addProcessStep(processStep)
Arguments
processStepobject of class ISOProcessStep
Returns
TRUE if added, FALSE otherwise
Method delProcessStep()
Deletes process step
Usage
ISOSource$delProcessStep(processStep)
Arguments
processStepobject of class ISOProcessStep
Returns
TRUE if deleted, FALSE otherwise
Method clone()
The objects of this class are cloneable with this method.
Usage
ISOSource$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Author(s)
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
References
ISO 19115:2003 - Geographic information – Metadata
Examples
src <- ISOSource$new()
src$setDescription("description")
src$setScaleDenominator(1L)
rs <- ISOReferenceSystem$new()
rsId <- ISOReferenceIdentifier$new(code = "4326", codeSpace = "EPSG")
rs$setReferenceSystemIdentifier(rsId)
src$setReferenceSystem(rs)
cit <- ISOCitation$new()
cit$setTitle("sometitle") #and more citation properties...
src$setCitation(cit)
extent <- ISOExtent$new()
bbox <- ISOGeographicBoundingBox$new(minx = -180, miny = -90, maxx = 180, maxy = 90)
extent$setGeographicElement(bbox)
src$addExtent(extent)
xml <- src$encode()