SWE: Classes and Construction Functions for the SWE Namespace

Description Usage Arguments Details Value Objects from the Class Slots Extends Methods Author(s) References Examples

Description

These classes represent elements from the OpenGIS(R) Sensor Model Language (SensorML) Implementation Specification that are used to model observation data in responses from a Sensor Observation Service.

Usage

1
2
3
4
5
SweCompositePhenomenon(id, name, description = as.character(NA), dimension,
                       components, base = NULL)
SwePhenomenon(id, name, description = as.character(NA))
SwePhenomenonProperty(href = as.character(NA), phenomenon = NULL)
SweTextBlock(tokenSeparator, blockSeparator, decimalSeparator, id = as.character(NA))

Arguments

Arguments of the construction functions are as follows.

id

The character string to be used for the id attribute (mandatory).

name

The character string to be used for the name element (mandatory).

description

The character string to be used for the description element.

dimension

The dimensions of a composite phenomenon (mandatory).

components

The (sub-) components of a composite phenomenon (mandatory).

base

The (optional) base element for a composite phenomenon.

href

A reference to an (online) object instead of a inline property.

phenomenon

The inline phenomenon of a phenomenon property.

tokenSeparator

The character to be used as the token seperator, often ",".

blockSeparator

The character to be used as the block seperator, often ";".

decimalSeparator

The character to be used as the decimal seperator, often ".".

Details

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

Value

The construction functions return an object of the respective class.

Objects from the Class

Objects can be created by calls to the constrction functions of the form SweCompositePhenomenon( ...), SwePhenomenonProperty( ...) and so forth.

The following classes are virtual, no objects may be created from them: SwePhenomenonOrNULL, SwePhenomenonPropertyOrNULL.

Slots

dimension:

Object of class "integer", the value of the dimensions attribute of a composite phenomenon.

components:

Object of class "list", the components of a composite phenomenon.

base:

Object of class "SwePhenomenonPropertyOrNULL", the base of a composite phenomenon, may be NULL.

id:

Object of class "character", the value of the id attribute of a (composite) phenomenon.

name:

Object of class "character", the value of the name element of a (composite) phenomenon.

description:

Object of class "character", the value of the description elements of a phenomenon.

href:

Object of class "character", the value of the href attribute of a phenomenon property which references a phenomenon.

phenomenon:

Object of class "SwePhenomenonOrNULL", the actual (inline) phenomenon of a phenomenon property.

tokenSeparator:

Object of class "character", the symbol to be used as the token seperator in a SweTextBlock, e.g. in the case of "," this would result in attribute1,attribute2.

blockSeparator:

Object of class "character", the symbol to be used as the block seperator in a SweTextBlock, e.g. in the case of ";" this would result in attribute1_a,attribute2_a;attribute1_b,attribute2_b.

decimalSeparator:

Object of class "character", the symbol to be used as the decimal seperator in a SweTextBlock, e.g. in the case of "." this would result in attribute1,42.0,attribute3,23.0.

Extends

SweCompositePhenomenon: Class "SwePhenomenon", directly. Class "SwePhenomenonOrNULL", by class "SwePhenomenon", distance 2.

SwePhenomenon: Class "SwePhenomenonOrNULL", directly.

SwePhenomenonProperty: Class "SwePhenomenonPropertyOrNULL", directly.

Methods

show

signature(object = "SweCompositePhenomenon"): ...

show

signature(object = "SwePhenomenon"): ...

show

signature(object = "SwePhenomenonProperty"): ...

show

signature(object = "SweTextBlock"): ...

Author(s)

Daniel Nuest daniel.nuest@uni-muenster.de

References

See section 9, SWE Common XML Encoding and Examples, of Botts, M., Robin, A. (Eds.), OpenGIS(R) Sensor Model Language (SensorML) Implementation Specification, Open Geospatial Consortium Inc., OGC 07-000

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
showClass("SweCompositePhenomenon")
showClass("SwePhenomenon")
showClass("SwePhenomenonProperty")
showClass("SwePhenomenonPropertyOrNULL")
showClass("SweTextBlock")

## Not run: 
sos <- SOS(...)
obj <- parseX(...)
switchSweNamespace(xml2::xml_ns(obj), sos)

## End(Not run)

sos4R documentation built on July 9, 2020, 5:07 p.m.