Learn R Programming

geometa (version 0.6-2)

ISODataIdentification: ISODataIdentification

Description

ISODataIdentification

Usage

ISODataIdentification

Arguments

Value

Object of R6Class for modelling an ISO DataIdentification

Format

R6Class object.

Fields

spatialRepresentationType

[ISOSpatialRepresentationType] spatial representation type

spatialResolution

[ISOResolution] spatial resolution(s)

language

[ISOLanguage] locale language(s)

characterSet

[ISOCharacterSet] character set

topicCategory

[ISOTopicCategory] topic categorie(s)

environmentDescription

[character] environment description

extent

[ISOExtent] extent(s)

supplementalInformation

[character] supplemental information

Inherited methods

setCitation(citation)

Sets an object of class ISOCitation

setAbstract(abstract, locales)

Sets an abstract (object of class "character"). Locale names can be specified as list with the locales argument.

setPurpose(purpose, locales)

Sets a purpose (object of class "character"). Locale names can be specified as list with the locales argument.

addCredit(credit, locales)

Adds a credit (object of class "character"). Locale names can be specified as list with the locales argument.

delCredit(credit, locales)

Deletes a credit (object of class "character"). Locale names can be specified as list with the locales argument.

addStatus(status)

Adds a status, as object of class "character" or class ISOStatus. If an object of class "character" is specified, it must match the accepted progress status values ISOStatus$values().

delStatus(status)

Deletes a status, as object of class "character" or class ISOStatus. If an object of class "character" is specified, it must match the accepted progress status values ISOStatus$values().

addPointOfContact(pointOfContact)

Adds an object of class ISOResponsibleParty

delPointOfContact(pointOfContact)

Deletes an object of class ISOResponsibleParty

addResourceMaintenance(resourceMaintenance)

Adds a resource maintenance information as object of class ISOMaintenanceInformation.

setResourceMaintenance(resourceMaintenance)

Sets a resource maintenance information as object of class ISOMaintenanceInformation.

delResourceMaintenance(resourceMaintenance)

Deletes a resource maintenance information as object of class ISOMaintenanceInformation.

addGraphicOverview(graphicOverview)

Adds an object of class ISOBrowseGraphic

setGraphicOverview(graphicOverview)

Sets an object of class ISOBrowseGraphic

delGraphicOverview(graphicOverview)

Deletes an object of class ISOBrowseGraphic

addKeywords(keywords)

Adds a set of keywords as object of class ISOKeywords

setKeywords(keywords)

Sets a set of keywords as object of class ISOKeywords

delKeywords(keywords)

Deletes a set of keywords as object of class ISOKeywords

addResourceConstraints(resourceConstraints)

Adds an object of class ISOLegalConstraints

setResourceConstraints(resourceConstraints)

Sets an object of class ISOLegalConstraints

addResourceConstraints(resourceConstraints)

Deletes an object of class ISOLegalConstraints

Methods

new(xml,value)

This method is used to instantiate an ISODataIdentification

addSpatialRepresentationType(spatialRepresentationType)

Adds a spatial representation type, as object of class "character" or class ISOSpatialRepresentationType. If an object of class "character" is specified, it must match the accepted values listed by ISOSpatialRepresentationType$values().

setSpatialRepresentationType(spatialRepresentationType)

Sets a spatial representation type, as object of class "character" or class ISOSpatialRepresentationType. If an object of class "character" is specified, it must match the accepted values listed by ISOSpatialRepresentationType$values().

delSpatialRepresentationType(spatialRepresentationType)

Deletes a spatial representation type, as object of class "character" or class ISOSpatialRepresentationType. If an object of class "character" is specified, it must match the accepted values listed by ISOSpatialRepresentationType$values().

addSpatialResolution(resolution)

Adds a spatial resolution, object of class ISOResolution

delSpatialResolution(resolution)

Deletes a spatial resolution, object of classISOResolution

addLanguage(locale)

Adds a language, as object of class "character" or class ISOLanguage. If an object of class "character" is specified, it must match the accepted language values ISOLanguage$values().

setLanguage(locale)

Sets a language, as object of class "character" or class ISOLanguage. If an object of class "character" is specified, it must match the accepted language values ISOLanguage$values().

delLanguage(locale)

Deletes a language, as object of class "character" or class ISOLanguage. If an object of class "character" is specified, it must match the accepted language values ISOLanguage$values().

addCharacterSet(charset)

Adds a character set, as object of class "character" or class ISOCharacterSet. If an object of class "character" is specified, it must match the accepted charset values ISOCharacterSet$values().

setCharacterSet(charset)

Sets a character set, as object of class "character" or class ISOCharacterSet. If an object of class "character" is specified, it must match the accepted charset values ISOCharacterSet$values().

delCharacterSet(charset)

Deletes a character set, as object of class "character" or class ISOCharacterSet. If an object of class "character" is specified, it must match the accepted charset values ISOCharacterSet$values().

addTopicCategory(topicCategory)

Adds a character set, as object of class "character" or class ISOTopicCategory. If an object of class "character" is specified, it must match the accepted topic category values ISOTopicCategory$values().

setTopicCategory(topicCategory)

Sets a character set, as object of class "character" or class ISOTopicCategory. If an object of class "character" is specified, it must match the accepted topic category values ISOTopicCategory$values().

delTopicCategory(topicCategory)

Deletes a character set, as object of class "character" or class ISOTopicCategory. If an object of class "character" is specified, it must match the accepted topic category values ISOTopicCategory$values().

setEnvironmentDescription(environmentDescription)

Sets the environment description

addExtent(extent)

Adds an object of class ISOExtent.

setExtent(extent)

Sets an object of class ISOExtent.

delExtent(extent)

Deletes an object of class ISOExtent.

setSupplementalInformation(supplementalInformation, locales)

Sets supplemental information (object of class "character"). Locale names can be specified as list with the locales argument.

References

ISO 19115:2003 - Geographic information -- Metadata

Examples

Run this code
# NOT RUN {
   #create dataIdentification
   md <- ISODataIdentification$new()
   md$setAbstract("abstract")
   md$setPurpose("purpose")
   md$setLanguage("eng")
   md$setCharacterSet("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$setGraphicOverview(go)
   
   #maintenance information
   mi <- ISOMaintenanceInformation$new()
   mi$setMaintenanceFrequency("daily")
   md$setResourceMaintenance(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$setResourceConstraints(lc)
   
   #adding extent
   extent <- ISOExtent$new()
   bbox <- ISOGeographicBoundingBox$new(minx = -180, miny = -90, maxx = 180, maxy = 90)
   extent$setGeographicElement(bbox)
   md$setExtent(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()
   
# }

Run the code above in your browser using DataLab