Learn R Programming

sos4R (version 0.4.2)

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.

Slots

samplingTime:

Object of class "GmlTimeObjectOrNULL": The time that the result applies to the feature-of-interest. This is the time usually required for geospatial analysis of the result.

procedure:

Object of class "ANY": The description of a process used to generate the result. It must be suitable for the observed property.

observedProperty:

Object of class "SwePhenomenonProperty": Identifies or describes the phenomenon for which the observation result provides an estimate of its value. It must be a property associated with the type of the feature of interest.

featureOfInterest:

Object of class "GmlFeature": A feature of any type (ISO 19109, ISO 19101), which is a representation of the observation target, being the real-world object regarding which the observation is made.

result:

Object of class "ANY": Contains the value generated by the procedure. The type of the observation result must be consistent with the observed property, and the scale or scope for the value must be consistent with the quantity or category type.

metadata:

Object of class "ANY": Observation metadata.

resultTime:

Object of class "GmlTimeObjectOrNULL": The time when the procedure associated with the observation act was applied. For some observations these are identical, in which case the resultTime may be omitted. However, there are important cases where they differ.

resultQuality:

Object of class "ANY": Event specific quality of a result.

parameter:

Object of class "ANY": A general event-specific parameter. This will typically be used to record environmental parameters, or event-specific sampling parameters that are not tightly bound to either the feature-of-interest or the procedure.

href:

Object of class "character": Referenced observation in a OmObservationProperty.

Extends

OmObservation Class "'>OmObservationOrNULL", directly.

Methods

sosResult

signature(obj = "OmObservation"): Accessor function for the result slot of an observation or measurement.

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
# NOT RUN {
showClass("OmObservation")
showClass("OmObservationProperty")
showClass("OmObservationOrNULL")

OmObservationProperty(href = "http://link.to/myObservation")

# get result from an observation
# }
# NOT RUN {
result <- observation@result

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

Run the code above in your browser using DataLab