ISODataFile | R Documentation |
ISODataFile
ISODataFile
R6Class
object.
Object of R6Class
for modelling an ISO DataFile
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
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()
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.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
ISO/TS 19139:2007 Geographic information – XML
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.