GMLTimePeriod | R Documentation |
GMLTimePeriod
GMLTimePeriod
R6Class
object.
Object of R6Class
for modelling an GMLTimePeriod
geometa::geometaLogger
-> geometa::ISOAbstractObject
-> geometa::GMLAbstractObject
-> geometa::GMLAbstractGML
-> geometa::GMLAbstractTimeObject
-> geometa::GMLAbstractTimePrimitive
-> geometa::GMLAbstractTimeGeometricPrimitive
-> GMLTimePeriod
beginPosition
beginPosition [1]: 'POSIXct','POSIXt'
endPosition
endPosition [1]: 'POSIXct','POSIXt'
duration
duration [0..1]: character
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::GMLAbstractGML$addName()
geometa::GMLAbstractGML$delName()
geometa::GMLAbstractGML$setDescription()
geometa::GMLAbstractGML$setDescriptionReference()
geometa::GMLAbstractGML$setIdentifier()
geometa::GMLAbstractTimePrimitive$addRelatedTime()
geometa::GMLAbstractTimePrimitive$delRelatedTime()
new()
Initializes object
GMLTimePeriod$new(xml = NULL, beginPosition = NULL, endPosition = NULL)
xml
object of class XMLInternalNode-class
beginPosition
object of class numeric, Date or POSIXct-class
endPosition
object of class numeric, Date or POSIXct-class
setBeginPosition()
Set begin position
GMLTimePeriod$setBeginPosition(beginPosition)
beginPosition
object of class numeric, Date or POSIXct-class
setEndPosition()
Set end position
GMLTimePeriod$setEndPosition(endPosition)
endPosition
object of class numeric, Date or POSIXct-class
computeInterval()
Compute interval (ISO defined duration) and set proper attribute for XML encoding. The
method calls the static function GMLTimePeriod$computeISODuration
GMLTimePeriod$computeInterval()
setDuration()
Set ISO duration
GMLTimePeriod$setDuration( years = 0, months = 0, days = 0, hours = 0, mins = 0, secs = 0 )
years
years
months
months
days
days
hours
hours
mins
mins
secs
secs
clone()
The objects of this class are cloneable with this method.
GMLTimePeriod$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
start <- ISOdate(2000, 1, 12, 12, 59, 45)
end <- ISOdate(2010, 8, 22, 13, 12, 43)
md <- GMLTimePeriod$new(beginPosition = start, endPosition = end)
xml <- md$encode()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.