ISODataIdentification19139
ISODataIdentification19139
R6Class
object.
Object of R6Class
for modelling an ISO DataIdentification in ISO 19139
- ISO 19139 https://schemas.isotc211.org/19139/-/gmd/1.0/gmd/#element_MD_DataIdentification
geometa::geometaLogger
-> geometa::ISOAbstractObject
-> geometa::ISOIdentification
-> geometa::ISOIdentification19139
-> ISODataIdentification19139
spatialRepresentationType
spatialRepresentationType [0..*]: ISOSpatialRepresentationType
spatialResolution
spatialResolution [0..*]: ISOResolution
temporalResolution
[0..*]: ISOPeriodDuration
language
language [1..*]: character
characterSet
characterSet [0..*]: ISOCharacterSet
topicCategory
topicCategory [0..*]: ISOTopicCategory
environmentDescription
environment description [0..1]: character
extent
extent [0..*]: ISOExtent
supplementalInformation
supplementalInformation
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()
geometa::ISOIdentification19139$addAggregateInformation()
geometa::ISOIdentification19139$addCredit()
geometa::ISOIdentification19139$addFormat()
geometa::ISOIdentification19139$addGraphicOverview()
geometa::ISOIdentification19139$addKeywords()
geometa::ISOIdentification19139$addPointOfContact()
geometa::ISOIdentification19139$addResourceConstraints()
geometa::ISOIdentification19139$addResourceMaintenance()
geometa::ISOIdentification19139$addResourceSpecificUsage()
geometa::ISOIdentification19139$addStatus()
geometa::ISOIdentification19139$delAggregateInformation()
geometa::ISOIdentification19139$delCredit()
geometa::ISOIdentification19139$delFormat()
geometa::ISOIdentification19139$delGraphicOverview()
geometa::ISOIdentification19139$delKeywords()
geometa::ISOIdentification19139$delPointOfContact()
geometa::ISOIdentification19139$delResourceConstraints()
geometa::ISOIdentification19139$delResourceMaintenance()
geometa::ISOIdentification19139$delResourceSpecificUsage()
geometa::ISOIdentification19139$delStatus()
geometa::ISOIdentification19139$setAbstract()
geometa::ISOIdentification19139$setCitation()
geometa::ISOIdentification19139$setGraphicOverview()
geometa::ISOIdentification19139$setKeywords()
geometa::ISOIdentification19139$setPurpose()
geometa::ISOIdentification19139$setResourceMaintenance()
new()
Initializes object
ISODataIdentification19139$new(xml = NULL)
xml
object of class XMLInternalNode-class
addSpatialRepresentationType()
Adds spatial representation type
spatialRepresentationType
object of class ISOSpatialRepresentationType or
any character among values returned by ISOSpatialRepresentationType$values()
delSpatialRepresentationType()
Deletes spatial representation type
spatialRepresentationType
object of class ISOSpatialRepresentationType or
any character among values returned by ISOSpatialRepresentationType$values()
addSpatialResolution()
Adds spatial resolution
resolution
object of class ISOResolution
delSpatialResolution()
Deletes spatial resolution
resolution
object of class ISOResolution
addLanguage()
Adds language
locale
object of class ISOLanguage or any character
value among those returned by ISOLanguage$values()
setLanguage()
Sets language
locale
object of class ISOLanguage or any character
value among those returned by ISOLanguage$values()
delLanguage()
Deletes language
locale
object of class ISOLanguage or any character
value among those returned by ISOLanguage$values()
addCharacterSet()
Adds character set
charset
object of class ISOCharacterSet or any character
value among those returned by ISOCharacterSet$values()
setCharacterSet()
Sets character set
charset
object of class ISOCharacterSet or any character
value among those returned by ISOCharacterSet$values()
delCharacterSet()
Deletes character set
charset
object of class ISOCharacterSet or any character
value among those returned by ISOCharacterSet$values()
addTopicCategory()
Adds topic category
topicCategory
object of class ISOTopicCategory or any character
value among those returned by ISOTopicCategory$values()
delTopicCategory()
Deletes topic category
topicCategory
object of class ISOTopicCategory or any character
value among those returned by ISOTopicCategory$values()
setSupplementalInformation()
Set supplemental information
#create dataIdentification
md <- ISODataIdentification$new()
md$setAbstract("abstract")
md$setPurpose("purpose")
md$addLanguage("eng")
#> [1] TRUE
md$addCharacterSet("utf8")
#> [1] TRUE
md$addTopicCategory("biota")
#> [1] TRUE
md$addTopicCategory("oceans")
#> [1] TRUE
#adding a point of contact
rp <- ISOResponsibleParty$new()
rp$setIndividualName("someone")
rp$setOrganisationName("somewhere")
rp$setPositionName("someposition")
rp$setRole("pointOfContact")
contact <- ISOContact$new()
phone <- ISOTelephone$new()
phone$setVoice("myphonenumber")
phone$setFacsimile("myfacsimile")
contact$setPhone(phone)
address <- ISOAddress$new()
address$setDeliveryPoint("theaddress")
address$setCity("thecity")
address$setPostalCode("111")
address$setCountry("France")
address$setEmail("someone@theorg.org")
contact$setAddress(address)
res <- ISOOnlineResource$new()
res$setLinkage("http://www.somewhereovertheweb.org")
res$setName("somename")
contact$setOnlineResource(res)
rp$setContactInfo(contact)
md$addPointOfContact(rp)
#> [1] TRUE
#citation
ct <- ISOCitation$new()
ct$setTitle("sometitle")
d <- ISODate$new()
d$setDate(ISOdate(2015, 1, 1, 1))
d$setDateType("publication")
ct$addDate(d)
ct$setEdition("1.0")
ct$setEditionDate(ISOdate(2015, 1, 1, 1))
ct$addIdentifier(ISOMetaIdentifier$new(code = "identifier"))
#> [1] TRUE
ct$addPresentationForm("mapDigital")
#> [1] TRUE
ct$addCitedResponsibleParty(rp)
#> [1] TRUE
md$setCitation(ct)
#graphic overview
go <- ISOBrowseGraphic$new(
fileName = "http://wwww.somefile.org/png",
fileDescription = "Map Overview",
fileType = "image/png"
)
md$addGraphicOverview(go)
#> [1] TRUE
#maintenance information
mi <- ISOMaintenanceInformation$new()
mi$setMaintenanceFrequency("daily")
md$addResourceMaintenance(mi)
#> [1] TRUE
#adding legal constraints
lc <- ISOLegalConstraints$new()
lc$addUseLimitation("limitation1")
#> [1] TRUE
lc$addUseLimitation("limitation2")
#> [1] TRUE
lc$addUseLimitation("limitation3")
#> [1] TRUE
lc$addAccessConstraint("copyright")
#> [1] TRUE
lc$addAccessConstraint("license")
#> [1] TRUE
lc$addUseConstraint("copyright")
#> [1] TRUE
lc$addUseConstraint("license")
#> [1] TRUE
md$addResourceConstraints(lc)
#> [1] TRUE
#adding extent
extent <- ISOExtent$new()
bbox <- ISOGeographicBoundingBox$new(minx = -180, miny = -90, maxx = 180, maxy = 90)
extent$addGeographicElement(bbox)
#> [1] TRUE
md$addExtent(extent)
#> [1] TRUE
#add keywords
kwds <- ISOKeywords$new()
kwds$addKeyword("keyword1")
#> [1] TRUE
kwds$addKeyword("keyword2")
#> [1] TRUE
kwds$setKeywordType("theme")
th <- ISOCitation$new()
th$setTitle("General")
th$addDate(d)
kwds$setThesaurusName(th)
md$addKeywords(kwds)
#> [1] TRUE
#supplementalInformation
md$setSupplementalInformation("some additional information")
xml <- md$encode()
#> [geometa][INFO] Object 'ISODataIdentification19139' is VALID according to ISO 19139 XML schemas!