| 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
beginPositionbeginPosition [1]: 'POSIXct','POSIXt'
endPositionendPosition [1]: 'POSIXct','POSIXt'
durationduration [0..1]: character
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::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)
xmlobject of class XMLInternalNode-class
beginPositionobject of class numeric, Date or POSIXct-class
endPositionobject of class numeric, Date or POSIXct-class
setBeginPosition()Set begin position
GMLTimePeriod$setBeginPosition( beginPosition = NULL, frame = NULL, calendarEraName = NULL, indeterminatePosition = NULL )
beginPositionobject of class numeric, Date or POSIXct-class
frameframe attribute
calendarEraNamecalendarEraName attribute
indeterminatePositionindeterminatePosition attribute
setEndPosition()Set end position
GMLTimePeriod$setEndPosition( endPosition = NULL, frame = NULL, calendarEraName = NULL, indeterminatePosition = NULL )
endPositionobject of class numeric, Date or POSIXct-class
frameframe attribute
calendarEraNamecalendarEraName attribute
indeterminatePositionindeterminatePosition attribute
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 )
yearsyears
monthsmonths
daysdays
hourshours
minsmins
secssecs
clone()The objects of this class are cloneable with this method.
GMLTimePeriod$clone(deep = FALSE)
deepWhether 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.