Learn R Programming

sos4R (version 0.1-10)

TM_Operators: Classes and Construction Methods for Temporal Operator Classes

Description

Classes for temporal operators from OpenGIS(R) Filter Encoding used in filters in GetObservation requests.

Usage

TM_After(propertyName = sosDefaultTempOpPropertyName, time)
TM_Before(propertyName = sosDefaultTempOpPropertyName, time)
TM_During(propertyName = sosDefaultTempOpPropertyName, time)
TM_Equals(propertyName = sosDefaultTempOpPropertyName, time)

Arguments

propertyName
The name of the property that is used to wrap the time.
time
A time instant or period to be used as the temporal operand.

Value

  • An object of the respective class, so TM_After, TM_Before, TM_During or TM_Equals

Objects from the Class

Objects can be created by calls of the form new("TM_After", ...).

Extends

Class "OgcBinaryTemporalOp", directly. Class "OgcBinaryTemporalOpOrNULL", by class "OgcBinaryTemporalOp", distance 2.

References

Vretanos, Panagiotis A. (Ed.), OpenGIS® Filter Encoding Implementation Specification, OGC 04-095, Version: 1.1.0

See the schema file: http://schemas.opengis.net/sos/1.0.0/ogc4sos.xsd.

See Also

SosGetObservation

Examples

Run this code
showClass("TM_After")
showClass("TM_Before")
showClass("TM_During")
showClass("TM_Equals")

# create times to use for operators
t1 <- sosCreateTimeInstant(sos = weathersos, time = Sys.time())
p1 <- sosCreateTimePeriod(sos = weathersos, begin = as.POSIXct("2010-03-01 12:15"), end = as.POSIXct("2010-03-02 12:15"))

# create temporal operator
afterNow <- TM_After(time = t1)
print(afterNow)
encodeXML(t1, sos)

during <- TM_During(time = p1)
print(during)

Run the code above in your browser using DataLab