
ISOSource
ISOSource
Object of R6Class
for modelling an ISO Source
R6Class
object.
description
scaleDenominator
sourceReferenceSystem
sourceCitation
sourceExtent
sourceStep
new(xml)
This method is used to instantiate an ISOSource
setDescription(description)
Sets the source description
setScaleDenominator(denominator)
Sets the scale denominator (object of class ISORepresentativeFraction
or
an integer value or other value coercable to integer)
setReferenceSystem(referenceSystem)
Sets the source reference system (object of class ISOReferenceSystem
)
setCitation(citation)
Sets the source citation (object of class ISOCitation
)
addExtent(extent)
Adds the source extent (object of class ISOExtent
)
delExtent(extent)
Deletes a source extent
addProcessStep(processStep)
Adds a source process step (object of class ISOProcessStep
)
delProcessStep(processStep)
Deletes a source processStep
ISO 19115:2003 - Geographic information -- Metadata
# NOT RUN {
src <- ISOSource$new()
src$setDescription("description")
src$setScaleDenominator(1L)
rs <- ISOReferenceSystem$new()
rsId <- ISOReferenceIdentifier$new(code = "4326", codeSpace = "EPSG")
rs$setReferenceSystemIdentifier(rsId)
src$setReferenceSystem(rs)
cit <- ISOCitation$new()
cit$setTitle("sometitle") #and more citation properties...
src$setCitation(cit)
extent <- ISOExtent$new()
bbox <- ISOGeographicBoundingBox$new(minx = -180, miny = -90, maxx = 180, maxy = 90)
extent$setGeographicElement(bbox)
src$addExtent(extent)
xml <- src$encode()
# }
Run the code above in your browser using DataLab