ISODataIdentification | R Documentation |
ISODataIdentification
ISODataIdentification
R6Class
object.
Object of R6Class
for modelling an ISO DataIdentification
geometa::geometaLogger
-> geometa::ISOAbstractObject
-> geometa::ISOIdentification
-> ISODataIdentification
spatialRepresentationType
spatialRepresentationType [0..*]: ISOSpatialRepresentationType
spatialResolution
spatialResolution [0..*]: ISOResolution
language
language [1..*]: character
characterSet
characterSet [0..*]: ISOCharacterSet
topicCategory
topicCategory [0..*]: ISOTopicCategory
extent
extent [0..*]: ISOExtent
supplementalInformation
supplementalInformation
geometa::geometaLogger$ERROR()
geometa::geometaLogger$INFO()
geometa::geometaLogger$WARN()
geometa::ISOAbstractObject$addFieldAttrs()
geometa::ISOAbstractObject$addListElement()
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$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$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$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
ISODataIdentification$new(xml = NULL)
xml
object of class XMLInternalNode-class
addSpatialRepresentationType()
Adds spatial representation type
ISODataIdentification$addSpatialRepresentationType(spatialRepresentationType)
spatialRepresentationType
object of class ISOSpatialRepresentationType or
any character among values returned by ISOSpatialRepresentationType$values()
TRUE
if added, FALSE
otherwise
setSpatialRepresentationType()
Sets spatial representation type
ISODataIdentification$setSpatialRepresentationType(spatialRepresentationType)
spatialRepresentationType
object of class ISOSpatialRepresentationType or
any character among values returned by ISOSpatialRepresentationType$values()
TRUE
if added, FALSE
otherwise
delSpatialRepresentationType()
Deletes spatial representation type
ISODataIdentification$delSpatialRepresentationType(spatialRepresentationType)
spatialRepresentationType
object of class ISOSpatialRepresentationType or
any character among values returned by ISOSpatialRepresentationType$values()
TRUE
if deleted, FALSE
otherwise
addSpatialResolution()
Adds spatial resolution
ISODataIdentification$addSpatialResolution(resolution)
resolution
object of class ISOResolution
TRUE
if added, FALSE
otherwise
delSpatialResolution()
Deletes spatial resolution
ISODataIdentification$delSpatialResolution(resolution)
resolution
object of class ISOResolution
TRUE
if deleted, FALSE
otherwise
addLanguage()
Adds language
ISODataIdentification$addLanguage(locale)
locale
object of class ISOLanguage or any character
value among those returned by ISOLanguage$values()
TRUE
if added, FALSE
otherwise
setLanguage()
Sets language
ISODataIdentification$setLanguage(locale)
locale
object of class ISOLanguage or any character
value among those returned by ISOLanguage$values()
TRUE
if added, FALSE
otherwise
delLanguage()
Deletes language
ISODataIdentification$delLanguage(locale)
locale
object of class ISOLanguage or any character
value among those returned by ISOLanguage$values()
TRUE
if deleted, FALSE
otherwise
addCharacterSet()
Adds character set
ISODataIdentification$addCharacterSet(charset)
charset
object of class ISOCharacterSet or any character
value among those returned by ISOCharacterSet$values()
TRUE
if added, FALSE
otherwise
setCharacterSet()
Sets character set
ISODataIdentification$setCharacterSet(charset)
charset
object of class ISOCharacterSet or any character
value among those returned by ISOCharacterSet$values()
TRUE
if added, FALSE
otherwise
delCharacterSet()
Deletes character set
ISODataIdentification$delCharacterSet(charset)
charset
object of class ISOCharacterSet or any character
value among those returned by ISOCharacterSet$values()
TRUE
if deleted, FALSE
otherwise
addTopicCategory()
Adds topic category
ISODataIdentification$addTopicCategory(topicCategory)
topicCategory
object of class ISOTopicCategory or any character
value among those returned by ISOTopicCategory$values()
TRUE
if added, FALSE
otherwise
setTopicCategory()
Sets topic category
ISODataIdentification$setTopicCategory(topicCategory)
topicCategory
object of class ISOTopicCategory or any character
value topicCategory those returned by ISOTopicCategory$values()
TRUE
if added, FALSE
otherwise
delTopicCategory()
Deletes topic category
ISODataIdentification$delTopicCategory(topicCategory)
topicCategory
object of class ISOTopicCategory or any character
value among those returned by ISOTopicCategory$values()
TRUE
if deleted, FALSE
otherwise
addExtent()
Adds extent
ISODataIdentification$addExtent(extent)
extent
object of class ISOExtent
TRUE
if added, FALSE
otherwise
setExtent()
Sets extent
ISODataIdentification$setExtent(extent)
extent
object of class ISOExtent
TRUE
if added, FALSE
otherwise
delExtent()
Deletes extent
ISODataIdentification$delExtent(extent)
extent
object of class ISOExtent
TRUE
if deleted, FALSE
otherwise
setSupplementalInformation()
Set supplemental information
ISODataIdentification$setSupplementalInformation( supplementalInformation, locales = NULL )
supplementalInformation
supplemental information
locales
a list of localized information. Default is NULL
clone()
The objects of this class are cloneable with this method.
ISODataIdentification$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
ISO 19115:2003 - Geographic information – Metadata
#create dataIdentification
md <- ISODataIdentification$new()
md$setAbstract("abstract")
md$setPurpose("purpose")
md$addLanguage("eng")
md$addCharacterSet("utf8")
md$addTopicCategory("biota")
md$addTopicCategory("oceans")
#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)
#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"))
ct$addPresentationForm("mapDigital")
ct$addCitedResponsibleParty(rp)
md$setCitation(ct)
#graphic overview
go <- ISOBrowseGraphic$new(
fileName = "http://wwww.somefile.org/png",
fileDescription = "Map Overview",
fileType = "image/png"
)
md$addGraphicOverview(go)
#maintenance information
mi <- ISOMaintenanceInformation$new()
mi$setMaintenanceFrequency("daily")
md$addResourceMaintenance(mi)
#adding legal constraints
lc <- ISOLegalConstraints$new()
lc$addUseLimitation("limitation1")
lc$addUseLimitation("limitation2")
lc$addUseLimitation("limitation3")
lc$addAccessConstraint("copyright")
lc$addAccessConstraint("license")
lc$addUseConstraint("copyright")
lc$addUseConstraint("license")
md$addResourceConstraints(lc)
#adding extent
extent <- ISOExtent$new()
bbox <- ISOGeographicBoundingBox$new(minx = -180, miny = -90, maxx = 180, maxy = 90)
extent$addGeographicElement(bbox)
md$addExtent(extent)
#add keywords
kwds <- ISOKeywords$new()
kwds$addKeyword("keyword1")
kwds$addKeyword("keyword2")
kwds$setKeywordType("theme")
th <- ISOCitation$new()
th$setTitle("General")
th$addDate(d)
kwds$setThesaurusName(th)
md$addKeywords(kwds)
#supplementalInformation
md$setSupplementalInformation("some additional information")
xml <- md$encode()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.