ISODataFile
ISODataFile
R6Class
object.
Object of R6Class
for modelling an ISO DataFile
ISO/TS 19139:2007 Geographic information – XML
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
Inherited methods
geometa::geometaLogger$ERROR()
geometa::geometaLogger$INFO()
geometa::geometaLogger$WARN()
geometa::ISOAbstractObject$addFieldAttrs()
geometa::ISOAbstractObject$addListElement()
geometa::ISOAbstractObject$checkMetadataStandardCompliance()
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$stopIfMetadataStandardIsNot()
geometa::ISOAbstractObject$validate()
geometa::ISOAbstractObject$wrapBaseElement()
setFileDescription()
Set file description
fileDescription
object of class character
locales
list of localized descriptions. Default is NULL
addFeatureType()
Adds feature type
featureType
object of class ISOLocalName, ISOScopedName or character
delFeatureType()
Deletes feature type
featureType
object of class ISOLocalName, ISOScopedName or character
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")
#> [1] TRUE
f <- ISOFormat$new()
f$setName("name")
f$setVersion("1.0")
f$setAmendmentNumber("2")
f$setSpecification("specification")
md$setFileFormat(f)
xml <- md$encode()
#> [geometa][WARN] Element '{http://www.isotc211.org/2005/gmx}MX_DataFile': No matching global declaration available for the validation root at line 1.
#> [geometa][WARN] Object 'ISODataFile' is INVALID according to ISO 19139 XML schemas!