ISOServiceIdentification
ISOServiceIdentification
R6Class
object.
Object of R6Class
for modelling an ISO ServiceIdentification
ISO 19115:2003 - Geographic information – Metadata
geometa::geometaLogger
-> geometa::ISOAbstractObject
-> geometa::ISOIdentification
-> ISOServiceIdentification
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::ISOIdentification$addAggregateInformation()
geometa::ISOIdentification$addCredit()
geometa::ISOIdentification$addFormat()
geometa::ISOIdentification$addGraphicOverview()
geometa::ISOIdentification$addKeywords()
geometa::ISOIdentification$addPointOfContact()
geometa::ISOIdentification$addResourceConstraints()
geometa::ISOIdentification$addResourceMaintenance()
geometa::ISOIdentification$addResourceSpecificUsage()
geometa::ISOIdentification$addStatus()
geometa::ISOIdentification$delAggregateInformation()
geometa::ISOIdentification$delCredit()
geometa::ISOIdentification$delFormat()
geometa::ISOIdentification$delGraphicOverview()
geometa::ISOIdentification$delKeywords()
geometa::ISOIdentification$delPointOfContact()
geometa::ISOIdentification$delResourceConstraints()
geometa::ISOIdentification$delResourceMaintenance()
geometa::ISOIdentification$delResourceSpecificUsage()
geometa::ISOIdentification$delStatus()
geometa::ISOIdentification$setAbstract()
geometa::ISOIdentification$setCitation()
geometa::ISOIdentification$setGraphicOverview()
geometa::ISOIdentification$setKeywords()
geometa::ISOIdentification$setPurpose()
geometa::ISOIdentification$setResourceConstraints()
geometa::ISOIdentification$setResourceMaintenance()
new()
Initializes object
ISOServiceIdentification$new(xml = NULL)
xml
object of class XMLInternalNode-class
#encoding
md <- ISOServiceIdentification$new()
md$setAbstract("abstract")
md$setPurpose("purpose")
#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))
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
xml <- md$encode()
#> [geometa][INFO] Object 'ISOServiceIdentification' is VALID according to ISO 19139 XML schemas!