Vector Element Requirements Class: Record Components Schema Requirements Class
SWE Common Data Model OGC 08-094r1
This element is similar to the “DataRecord” element except that it is composed of a list of coordinates instead of fields. Each “coordinate” element is restricted to numerical
component types see “AnyNumerical” element group defined in clause 8.1.18 and inherits the reference frame from the “Vector” element. A Schematron pattern enforces
that an “axisID” attribute is specified and that no “referenceFrame” attribute is used on each coordinate component see Req 41 and Req 42.
The example below illustrates how to use the “Vector” element to encode geographic location:
swe:Vector definition
= http:sweet.jpl.nasa.gov2.0space.owlLocation
referenceFrame =
http:www.opengis.netdefcrsEPSG04326 swe:coordinate
name =
lat swe:Quantity
definition =
http:sweet.jpl.nasa.gov2.0spaceCoordinates.owlLatitude axisID
= Lat
swe:label Latitude
swe:label swe:uom
xlink:href =
deg swe:value
45.36 swe:value
swe:Quantity swe:coordinate
swe:coordinate name
= lon
swe:Quantity definition
= http:sweet.jpl.nasa.gov2.0spaceCoordinates.owlLongitude
axisID =
Long swe:label
Longitude swe:label
swe:uom code
= deg
swe:value 5.2
swe:value swe:Quantity
swe:coordinate swe:Vector
This snippet indicates that the location coordinates are given in the EPSG 4326 WGS 84 LatLon coordinate reference system. Note the use of a “definition” attribute to indicate
what type of vector it is.
This definition is very important because the “Vector” element can be used to represent other vector quantities than location. For instance, the velocity vector of a spacecraft can
be defined as show below:
swe:Vector definition
= http:sweet.jpl.nasa.gov2.0physDynamics.owlVelocity
referenceFrame =
http:www.opengis.netdefcrsOGC0ECI_WGS84 swe:coordinate
name =
Vx swe:Quantity
definition =
http:sweet.jpl.nasa.gov2.0physDynamics.owlSpeed axisID
=X swe:label
Velocity X swe:label
swe:uom xlink:href
= ms
swe:Quantity swe:coordinate
swe:coordinate name
= Vy
swe:Quantity definition
= http:sweet.jpl.nasa.gov2.0physDynamics.owlSpeed
axisID =Y
swe:label Velocity Y
swe:label swe:uom
code =
ms swe:Quantity
swe:coordinate swe:coordinate
name =
Vz swe:Quantity
definition =
http:sweet.jpl.nasa.gov2.0physDynamics.owlSpeed axisID
=Z swe:label
Velocity Z swe:label
swe:uom code
= ms
swe:Quantity swe:coordinate
swe:Vector
Copyright © 2011 Open Geospatial Consortium
93
OGC 08-094r1 SWE Common Data Model
This instance is a data descriptor i.e. there are no inline values for an element of a dataset containing coordinates of a velocity vector. Each coordinate is projected along
one axis of the Earth Centered Inertial ECI coordinate reference system and the unit of each vector component is the meter per second.
The “localFrame” attribute can also be used to identify the frame that the positioning information applies to:
swe:Vector definition
= http:sweet.jpl.nasa.gov2.0mathVect.owlQuaternion
referenceFrame =
http:www.opengis.netdefcrsOGC0ECI_WGS84 localFrame
= PLATFORM_FRAME
swe:coordinate name
= qx
swe:Quantity definition
= http:sweet.jpl.nasa.gov2.0mathVector.owlCoordinate
axisID =
X swe:uom
code =
1 swe:value
0.14 swe:value
swe:Quantity swe:coordinate
swe:coordinate name
= qy
swe:Quantity definition
= http:sweet.jpl.nasa.gov2.0mathVector.owlCoordinate
axisID =
Y swe:uom
code =
1 swe:value
0.22 swe:value
swe:Quantity swe:coordinate
swe:coordinate name
= qz
swe:Quantity definition
= http:sweet.jpl.nasa.gov2.0mathVector.owlCoordinate
axisID =
Z swe:uom
code =
1 swe:value
0.05 swe:value
swe:Quantity swe:coordinate
swe:coordinate name
= qw
swe:Quantity definition
= http:sweet.jpl.nasa.gov2.0mathVector.owlCoordinate
axisID =
R swe:uom
code =
1 swe:value
0.33 swe:value
swe:Quantity swe:coordinate
swe:Vector
This vector specifies the attitude of the local frame i.e. for instance attached to a spacecraft with respect to the ECI reference frame using a normalized quaternion. Note
that quaternion coefficients are unit-less and normalized to 1.0 which is indicated by the UCUM code “1”.
94
Copyright © 2011 Open Geospatial Consortium
SWE Common Data Model OGC 08-094r1