Last chance! 50% off unlimited learning
Sale ends in
SosEventTime(temporalOps)
SosEventTimeLatest()
SosEventTime(...)
or SosEventTimeLatest(...)
.The request for the latest observation is not standard conform. The distinction between the classes happens eventually during encoding, where both classes have different encoding functions.
A typical example in a POST request:
In GET binding (SosBindings
) the eventTime is simply omitted for getting the latest observation.
It is recommended to use the creation functions as shown in the examples.
SosGetObservation-class
, sosCreateEventTimeList-methods
.showClass("SosEventTime")
showClass("SosEventTimeLatest")
# create SosEventTime for all times after the given time stamp
tOps <- TM_After(time = GmlTimeInstant(timePosition = GmlTimePosition(as.POSIXct("2010-01-01 12:00"))))
time1 <- SosEventTime(tOps)
# encode it as XML and KVP
encodeXML(time1)
encodeKVP(time1)
time2 <- SosEventTimeLatest()
encodeXML(time2)
Run the code above in your browser using DataLab