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.
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))
The character string to be used for the id attribute (mandatory).
The character string to be used for the name element (mandatory).
The character string to be used for the description element.
The dimensions of a composite phenomenon (mandatory).
The (sub-) components of a composite phenomenon (mandatory).
The (optional) base element for a composite phenomenon.
A reference to an (online) object instead of a inline property.
The inline phenomenon of a phenomenon property.
The character to be used as the token seperator, often ","
.
The character to be used as the block seperator, often ";"
.
The character to be used as the decimal seperator, often "."
.
The construction functions return an object of the respective 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
.
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
.
SweCompositePhenomenon:
Class "'>SwePhenomenon"
, directly.
Class "'>SwePhenomenonOrNULL"
, by class "SwePhenomenon", distance 2.
SwePhenomenon:
Class "'>SwePhenomenonOrNULL"
, directly.
SwePhenomenonProperty:
Class "'>SwePhenomenonPropertyOrNULL"
, directly.
signature(object = "SweCompositePhenomenon")
: ...
signature(object = "SwePhenomenon")
: ...
signature(object = "SwePhenomenonProperty")
: ...
signature(object = "SweTextBlock")
: ...
The ...OrNULL
classes are used to model optional slots.
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
# NOT RUN {
showClass("SweCompositePhenomenon")
showClass("SwePhenomenon")
showClass("SwePhenomenonProperty")
showClass("SwePhenomenonPropertyOrNULL")
showClass("SweTextBlock")
# }
# NOT RUN {
sos <- SOS(...)
obj <- parseX(...)
switchSweNamespace(xml2::xml_ns(obj), sos)
# }
Run the code above in your browser using DataLab