ISODataFile {geometa} | R Documentation |
ISODataFile
Description
ISODataFile
ISODataFile
Format
R6Class
object.
Value
Object of R6Class
for modelling an ISO DataFile
Super classes
geometa::geometaLogger
-> geometa::ISOAbstractObject
-> ISODataFile
Public fields
fileName
fileName [1..1]: ISOFileName
fileDescription
fileDescription [1..1]: character|ISOLocalisedCharacterString
fileType
fileType [1..1]: ISOMimeFileType
featureTypes
featureTypes [0..*]: ISOLocalName|ISOScopedName
fileFormat
fileFormat [1..1]: ISOFormat
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
ISODataFile$new(xml = NULL)
Arguments
xml
object of class XMLInternalNode-class
Method setFileName()
Set file name
Usage
ISODataFile$setFileName(fileName)
Arguments
fileName
object of class ISOFileName
Method setFileDescription()
Set file description
Usage
ISODataFile$setFileDescription(fileDescription, locales = NULL)
Arguments
fileDescription
object of class character
locales
list of localized descriptions. Default is
NULL
Method setFileType()
Set file type
Usage
ISODataFile$setFileType(fileType)
Arguments
fileType
object of class ISOMimeFileType
Method addFeatureType()
Adds feature type
Usage
ISODataFile$addFeatureType(featureType)
Arguments
featureType
object of class ISOLocalName, ISOScopedName or character
Returns
TRUE
if added, FALSE
otherwise
Method delFeatureType()
Deletes feature type
Usage
ISODataFile$delFeatureType(featureType)
Arguments
featureType
object of class ISOLocalName, ISOScopedName or character
Returns
TRUE
if deleted, FALSE
otherwise
Method setFileFormat()
Set file format
Usage
ISODataFile$setFileFormat(fileFormat)
Arguments
fileFormat
file format, object of class ISOFormat
Method clone()
The objects of this class are cloneable with this method.
Usage
ISODataFile$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
Author(s)
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
References
ISO/TS 19139:2007 Geographic information – XML
Examples
md <- ISODataFile$new()
md$setFileName(ISOFileName$new(file = "someuri", name = "filename"))
md$setFileDescription("description")
md$setFileType(ISOMimeFileType$new(type = "somemimetype", name = "Mime type name"))
md$addFeatureType("feature_type")
f <- ISOFormat$new()
f$setName("name")
f$setVersion("1.0")
f$setAmendmentNumber("2")
f$setSpecification("specification")
md$setFileFormat(f)
xml <- md$encode()