ISODataFile
ISODataFile
ISODataFile class
R6Class
object.
Object of R6Class
for modelling an ISO DataFile
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()
ISO/TS 19139:2007 Geographic information -- XML
Emmanuel Blondel emmanuel.blondel1@gmail.com
geometa::geometaLogger
-> geometa::ISOAbstractObject
-> ISODataFile
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
new()
Initializes object
ISODataFile$new(xml = NULL)
xml
: object of class XMLInternalNode-class
setFileName()
Set file name
ISODataFile$setFileName(fileName)
fileName
: object of class ISOFileName
setFileDescription()
Set file description
ISODataFile$setFileDescription(fileDescription, locales = NULL)
fileDescription
: object of class character
locales
: list of localized descriptions. Default is NULL
setFileType()
Set file type
ISODataFile$setFileType(fileType)
fileType
: object of class ISOMimeFileType
addFeatureType()
Adds feature type
ISODataFile$addFeatureType(featureType)
featureType
: object of class ISOLocalName , ISOScopedName or character
TRUE
if added, FALSE
otherwise
delFeatureType()
Deletes feature type
ISODataFile$delFeatureType(featureType)
featureType
: object of class ISOLocalName , ISOScopedName or character
TRUE
if deleted, FALSE
otherwise
setFileFormat()
Set file format
ISODataFile$setFileFormat(fileFormat)
fileFormat
: file format, object of class ISOFormat
clone()
The objects of this class are cloneable with this method.
ISODataFile$clone(deep = FALSE)
deep
: Whether to make a deep clone.