SensorML OGC 12-000
Copyright © 2014 Open Geospatial Consortium
105
8.1.4.5.3 SWE Common Data
SWE Common data types support the description and encoding of determined values, those measured or calculated by a physical or computational process. In addition to the
those properties described in ObservableProperty, SWE Common data types can also support other properties such as units of measure, constraints, quality indicators, and
values. It is highly recommended that one become familiar with the SWE Common Data specification in OGC 08-094.
In addition to simple data types such as Quantity, Count, Boolean, Category, Time, and Text, SWE Common Data also supports several aggregate data types, such as
DataRecord, DataArray, Vector, and Matrix. These allow appropriate grouping of data components, such as a DataRecord including an instantaneous snapshot of the
atmosphere e.g. temperature, pressure, wind direction, and wind speed, a DataArray providing the axes definitions and values for a calibration curve, a Vector providing the
GPS location e.g. latitude, longitude, and altitude of a dynamic platform, or a Matrix providing the covariance of a set of measurements.
Requirement
http:www.opengis.netspecsensorml2.0reqxmlcore-processdata-record
Req 59. Input, output, and parameter data components that are dependent on one another or represent the state at a given time, shall be surrounded by an
appropriate aggregate data component
The following example for a wind chill calculation process uses only SWE Common Quantity elements for inputs and outputs. Note that the input fields are surrounded by a
swe:DataRecord element since the temperature and wind speed fields express the condition of the environment at a given time instance.
-- ================
-- --
Inputs --
-- ================
-- sml:inputs
sml:InputList sml:input
name =
process_inputs swe:DataRecord
swe:field name
= temperature
swe:Quantity definition
= http:sweet.jpl.nasa.gov2.2quanTemperature.owlTemperature
swe:uom code
= cel
swe:Quantity swe:field
swe:field name
= windSpeed
swe:Quantity definition
= http:sweet.jpl.nasa.gov2.2quanSpeed.owlWindSpeed
swe:uom code
= ms
swe:Quantity swe:field
swe:DataRecord sml:input
sml:InputList sml:inputs
Copyright © 2014 Open Geospatial Consortium
106
-- ================
-- --
Outputs --
-- ================
-- sml:outputs
sml:OutputList sml:output
name =
windChill swe:Quantity
definition =
http:sweet.jpl.nasa.gov2.2quanTemperature.owlWindChill swe:uom
code =
cel swe:Quantity
sml:output sml:OutputList
sml:outputs
Requirement
http:www.opengis.netspecsensorml2.0reqxmlcore-processvector-use
Req 60. A swe:Vector shall be used for any input, output, or parameter value that requires position to be specified relative to a specific axis of a reference frame.
An example of position output provided as output of a system is given below. This example uses both Vector and DataRecord elements to group the fields appropriately.
sml:output swe:DataRecord
swe:field name
= location
swe:Vector definition
= http:sensorml.comontswepropertySensorLocation
referenceFrame =
http:www.opengis.netdefcrsEPSG6.74979 localFrame
= SENSOR_FRAME
swe:coordinate name
= Lat
swe:Quantity definition
= http:sensorml.comontswepropertyLatitude
axisID =
Lat swe:uom
code =
deg swe:Quantity
swe:coordinate swe:coordinate
name =
Lon swe:Quantity
definition =
http:sensorml.comontswepropertyLongitude axisID
= Long
swe:uom code
= deg
swe:Quantity swe:coordinate
swe:coordinate name
= Alt
swe:Quantity definition
= http:sensorml.comontswepropertyAltitude
axisID =
Alt swe:uom
code =
m swe:Quantity
swe:coordinate swe:Vector
swe:field swe:field
name =
orientation swe:Vector
definition =
http:sensorml.comdefpropertySensorOrientation referenceFrame
= http:www.opengis.netdefcrsNED
localFrame =
SENSOR_FRAME swe:coordinate
name =
TrueHeading swe:Quantity
definition =
http:sensorml.comontswepropertyTrueHeading axisID
= Z
swe:uom code
= deg
swe:Quantity swe:coordinate
swe:coordinate name
= Pitch
SensorML OGC 12-000
Copyright © 2014 Open Geospatial Consortium
107
swe:Quantity definition
= http:sensorml.comontswepropertyPitch
axisID =
Y swe:uom
code =
deg swe:Quantity
swe:coordinate swe:Vector
swe:field swe:DataRecord
sml:output
8.1.4.5.4 Data Interface