Learn R Programming

sos4R (version 0.1-10)

OmObservation-class: Classes for om:Observation Elements

Description

Classes and construction functions for objects from the OGC Observations and Measurements specification.

Usage

OmObservation(samplingTime, procedure, observedProperty, featureOfInterest, result, metadata = NA, resultTime = NULL, resultQuality = NA, parameter = NA)
OmObservationProperty(href = as.character(NA), obs = NULL)

Arguments

samplingTime
See slot description.
procedure
See slot description.
observedProperty
See slot description.
featureOfInterest
See slot description.
result
See slot description.
metadata
See slot description.
resultTime
See slot description.
resultQuality
See slot description.
parameter
See slot description.
href
See slot description.
obs
See slot description.

Value

  • The construction functions return an object of the respective class.

Objects from the Class

Objects can be created by calls to the construction functions of the form OmObservation(...) and OmObservationProperty(...).

The following classes are virtual, no objects may be created from them: OmObservationOrNULL-class.

Extends

OmObservation Class "OmObservationOrNULL", directly.

Details

The class OmObservationProperty can be used to reference to an (online) observation.

The ...OrNULL classes are used to model optional slots.

References

Cox, S. (Ed.), Observations and Measurements – Part 1 - Observation schema, Open Geospatial Consortium Inc., OGC 07-022r1, Version: 1.0

See Also

See Also as OmMeasurement-class.

Examples

Run this code
showClass("OmObservation")
showClass("OmObservationProperty")
showClass("OmObservationOrNULL")

# TBD examples for construction methods
OmObservationProperty(href = "http://link.to/myObservation")

# get result from an observation
result <- observation@result

# the accessor method also works with lists of observations
result <- sosResult(observation)
resultList <- sosResult(observationList)

Run the code above in your browser using DataLab