Package org.vast.swe.helper
Class GeoPosHelper
java.lang.Object
org.vast.swe.SWEHelper
org.vast.swe.helper.VectorHelper
org.vast.swe.helper.GeoPosHelper
Helper class to create SWE structures used for geo-positioning
This includes location and attitude but also linear velocity, angular rate,
and linear acceleration
- Since:
- March 2016
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class org.vast.swe.helper.VectorHelper
DEF_ACCELERATION, DEF_ANGLE, DEF_ANGULAR_ACCEL, DEF_ANGULAR_VELOCITY, DEF_COORD, DEF_DISTANCE, DEF_LOCATION, DEF_ORIENTATION, DEF_ORIENTATION_EULER, DEF_ORIENTATION_QUAT, DEF_ROT_MATRIX, DEF_ROW, DEF_UNIT_VECTOR, DEF_VELOCITY
Fields inherited from class org.vast.swe.SWEHelper
ACCEL_UNIT, ANGLE_UNIT, ANGULAR_SPEED_UNIT, CURRENT_UNIT, DEFAULT_SWE_FACTORY, DISTANCE_UNIT, ENERGY_UNIT, fac, MASS_UNIT, PATH_SEPARATOR, POWER_UNIT, SPEED_UNIT, SURFACE_UNIT, TEMP_UNIT, TIME_UNIT, UNITLESS, uomParser, VOLTAGE_UNIT, VOLUME_UNIT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateEulerOrientationECEF
(String uomCode) Creates an orientation vector component composed of 3 Euler angles expressed in Earth-Centered-Earth-Fixed (ECEF) frame (order of rotations is X, Y, Z)createEulerOrientationENU
(String uomCode) Creates a 3D orientation vector composed of 3 Euler angles expressed in local East-North-Up (ENU) frame (order of rotations is heading/Z, pitch/X, roll/Y in rotating frame)createEulerOrientationNED
(String uomCode) Creates a 3D orientation vector composed of 3 Euler angles expressed in local North-East-Down (NED) frame (order of rotations is heading/Z, pitch/Y, roll/X in rotating frame)createEulerOrientationYPR
(String uomCode) Creates a 3D orientation vector composed of 3 Euler angles expressed in a local frame (order of rotations is yaw/Z, pitch/X, roll/Y in rotating frame)createLocationVectorECEF
(String uomCode) Creates a 3D location vector with ECEF X/Y/Z axes (EPSG 4978)Creates a 2D location vector with latitude/longitude axes (EPSG 4326)Creates a 3D location vector with latitude/longitude/altitude axes and WGS84 datum (EPSG 4979)Creates a 3D location vector with latitude/longitude on WGS84 datum (EPSG 4326) and MSL altitude (EPSG 5714)Creates a 4d vector representing an orientation quaternion expressed in the given frame (scalar comes last).Creates a 4d vector representing an orientation quaternion expressed in ECEF frame.Creates a 4d vector representing an orientation quaternion expressed in ENU frame.Creates a 4d vector representing an orientation quaternion expressed in NED frame.createVelocityVectorECEF
(String uomCode) Creates a 3D velocity vector with ECEF X/Y/Z axes (EPSG 4978)createVelocityVectorENU
(String uomCode) Creates a 3D velocity vector with ENU X/Y/Z axescreateVelocityVectorNED
(String uomCode) Creates a 3D velocity vector with NED X/Y/Z axesnewEulerOrientationECEF
(String def, String uomCode) Creates an orientation vector component composed of 3 Euler angles expressed in Earth-Centered-Earth-Fixed (ECEF) frame (order of rotations is X, Y, Z)newEulerOrientationENU
(String def, String uomCode) Creates a 3D orientation vector composed of 3 Euler angles expressed in local East-North-Up (ENU) frame (order of rotations is heading/Z, pitch/X, roll/Y in rotating frame)Default version ofnewEulerOrientationNED(String, String)
with units set to degreesnewEulerOrientationNED
(String def, String uomCode) Creates a 3D orientation vector composed of 3 Euler angles expressed in local North-East-Down (NED) frame (order of rotations is heading/Z, pitch/Y, roll/X in rotating frame)Creates a 3D location vector with ECEF X/Y/Z axes (EPSG 4978), measured in metersnewLocationVectorECEF
(String def, String uomCode) Creates a 3D location vector with ECEF X/Y/Z axes (EPSG 4978)Creates a 3D location vector with latitude/longitude/altitude axes and WGS84 datum (EPSG 4979)Creates a 3D location vector with latitude/longitude on WGS84 datum (EPSG 4326) and MSL altitude (EPSG 5714)newQuatOrientation
(String def, String refFrame) Creates a 4d vector representing an orientation quaternion expressed in the given frame (scalar comes last).Creates a 4d vector representing an orientation quaternion expressed in ECEF frame.Creates a 4d vector representing an orientation quaternion expressed in ENU frame.Creates a 4d vector representing an orientation quaternion expressed in NED frame.newVelocityVectorECEF
(String def, String uomCode) Creates a 3D velocity with ECEF X/Y/Z axes (EPSG 4978)newVelocityVectorENU
(String def, String uomCode) Creates a 3D velocity with ENU X/Y/Z axesnewVelocityVectorNED
(String def, String uomCode) Creates a 3D velocity with NED X/Y/Z axesMethods inherited from class org.vast.swe.helper.VectorHelper
createAccelerationVector, createAngularVelocityVector, createEulerAngles, createLocationVectorXYZ, createUnitVectorXYZ, createVector3, createVelocityVector, newAccelerationVector, newAngularVelocityVector, newEulerAngles, newLocationVectorXYZ, newMatrix, newMatrix, newRotationMatrix, newUnitVectorXYZ, newVector3, newVector3D, newVelocityVector
Methods inherited from class org.vast.swe.SWEHelper
assignBinaryEncoding, checkUom, checkUom, checkUom, createArray, createBoolean, createCategory, createCategoryRange, createChoice, createCount, createCountRange, createDataParser, createDataWriter, createGeometry, createMatrix, createQuantity, createQuantityRange, createRecord, createText, createTime, createTimeRange, createVector, ensureXmlCompatible, findComponent, findComponentByDefinition, findComponentByName, findComponentByPath, findComponentByPath, getCfUri, getComponentPath, getDBpediaUri, getDefaultBinaryEncoding, getDefaultEncoding, getEpsgUri, getPropertyUri, getQudtUri, getRootComponent, getTimeStampIndexer, newAllowedTimes, newAllowedTokens, newAllowedValues, newBinaryBlock, newBinaryComponent, newBinaryEncoding, newBinaryEncoding, newBoolean, newBoolean, newCategory, newCategory, newCategoryRange, newCount, newCount, newCount, newCount, newCountRange, newCountRange, newDataArray, newDataArray, newDataArray, newDataChoice, newDataRecord, newDataRecord, newDataStream, newDataStream, newEncodedValuesProperty, newLinkProperty, newLinkProperty, newLinkProperty, newMatrix, newMatrix, newNilValue, newNilValues, newPhenomenonTimeIsoUTC, newQuantity, newQuantity, newQuantity, newQuantity, newQuantityRange, newQuantityRange, newRgbImage, newSystemIdComponent, newText, newText, newTextEncoding, newTextEncoding, newTime, newTime, newTime, newTime, newTimeIsoUTC, newTimeRange, newTimeRange, newTimeStampIsoGPS, newTimeStampIsoUTC, newTimeStampOnBoardClock, newUnitReference, newVector, newVector, newXMLEncoding, wrapWithTimeStamp, wrapWithTimeStampUTC
-
Field Details
-
DEF_LATITUDE_GEODETIC
-
DEF_LONGITUDE
-
DEF_ALTITUDE_ELLIPSOID
-
DEF_ALTITUDE_MSL
-
DEF_ALTITUDE_GROUND
-
DEF_ALTITUDE_BAROMETRIC
-
DEF_HEADING_TRUE
-
DEF_HEADING_MAGNETIC
-
DEF_YAW_ANGLE
-
DEF_PITCH_ANGLE
-
DEF_ROLL_ANGLE
-
DEF_AZIMUTH_ANGLE
-
DEF_ELEVATION_ANGLE
-
-
Constructor Details
-
GeoPosHelper
public GeoPosHelper()
-
-
Method Details
-
createLocationVectorLLA
Creates a 3D location vector with latitude/longitude/altitude axes and WGS84 datum (EPSG 4979)- Returns:
- A builder to set other options and build the final vector
-
newLocationVectorLLA
Creates a 3D location vector with latitude/longitude/altitude axes and WGS84 datum (EPSG 4979)- Parameters:
def
- semantic definition of location vector (if null,VectorHelper.DEF_LOCATION
is used)- Returns:
- the new Vector component object
-
createLocationVectorLLA_MSL
Creates a 3D location vector with latitude/longitude on WGS84 datum (EPSG 4326) and MSL altitude (EPSG 5714)- Returns:
- A builder to set other options and build the final vector
-
newLocationVectorLLA_MSL
Creates a 3D location vector with latitude/longitude on WGS84 datum (EPSG 4326) and MSL altitude (EPSG 5714)- Parameters:
def
- semantic definition of location vector (if null,VectorHelper.DEF_LOCATION
is used)- Returns:
- the new Vector component object
-
createLocationVectorLatLon
Creates a 2D location vector with latitude/longitude axes (EPSG 4326)- Returns:
- A builder to set other options and build the final vector
-
newLocationVectorLatLon
- Parameters:
def
- semantic definition of location vector (if null,VectorHelper.DEF_LOCATION
is used)- Returns:
- the new Vector component object
- See Also:
-
#createLocationVectorLatLon(String)
-
createLocationVectorECEF
Creates a 3D location vector with ECEF X/Y/Z axes (EPSG 4978)- Parameters:
uomCode
- unit of distance to use on all 3 axes- Returns:
- A builder to set other options and build the final vector
-
newLocationVectorECEF
Creates a 3D location vector with ECEF X/Y/Z axes (EPSG 4978)- Parameters:
def
- semantic definition of location vector (if null,VectorHelper.DEF_LOCATION
is used)uomCode
- unit of distance to use on all 3 axes- Returns:
- the new Vector component object
-
newLocationVectorECEF
Creates a 3D location vector with ECEF X/Y/Z axes (EPSG 4978), measured in meters- Parameters:
def
- semantic definition of location vector (if null,VectorHelper.DEF_LOCATION
is used)- Returns:
- the new Vector component object
-
createVelocityVectorECEF
Creates a 3D velocity vector with ECEF X/Y/Z axes (EPSG 4978)- Parameters:
uomCode
- unit of velocity to use on all 3 axes- Returns:
- A builder to set other options and build the final vector
-
newVelocityVectorECEF
Creates a 3D velocity with ECEF X/Y/Z axes (EPSG 4978)- Parameters:
def
- semantic definition of velocity vector (if null,VectorHelper.DEF_VELOCITY
is used)uomCode
- unit of velocity to use on all 3 axes- Returns:
- the new Vector component object
-
createVelocityVectorENU
Creates a 3D velocity vector with ENU X/Y/Z axes- Parameters:
uomCode
- unit of velocity to use on all 3 axes- Returns:
- A builder to set other options and build the final vector
-
newVelocityVectorENU
Creates a 3D velocity with ENU X/Y/Z axes- Parameters:
def
- semantic definition of velocity vector (if null,VectorHelper.DEF_VELOCITY
is used)uomCode
- unit of velocity to use on all 3 axes- Returns:
- the new Vector component object
-
createVelocityVectorNED
Creates a 3D velocity vector with NED X/Y/Z axes- Parameters:
uomCode
- unit of velocity to use on all 3 axes- Returns:
- A builder to set other options and build the final vector
-
newVelocityVectorNED
Creates a 3D velocity with NED X/Y/Z axes- Parameters:
def
- semantic definition of velocity vector (if null,VectorHelper.DEF_VELOCITY
is used)uomCode
- unit of velocity to use on all 3 axes- Returns:
- the new Vector component object
-
createEulerOrientationYPR
Creates a 3D orientation vector composed of 3 Euler angles expressed in a local frame (order of rotations is yaw/Z, pitch/X, roll/Y in rotating frame)- Parameters:
uomCode
- angular unit to use on all 3 axes- Returns:
- A builder to set other options and build the final vector
-
createEulerOrientationENU
Creates a 3D orientation vector composed of 3 Euler angles expressed in local East-North-Up (ENU) frame (order of rotations is heading/Z, pitch/X, roll/Y in rotating frame)- Parameters:
uomCode
- angular unit to use on all 3 axes- Returns:
- A builder to set other options and build the final vector
-
newEulerOrientationENU
Creates a 3D orientation vector composed of 3 Euler angles expressed in local East-North-Up (ENU) frame (order of rotations is heading/Z, pitch/X, roll/Y in rotating frame)- Parameters:
def
- semantic definition of orientation vector (if null,VectorHelper.DEF_ORIENTATION_EULER
is used)uomCode
- angular unit to use on all 3 axes- Returns:
- the new Vector component object
-
createEulerOrientationNED
Creates a 3D orientation vector composed of 3 Euler angles expressed in local North-East-Down (NED) frame (order of rotations is heading/Z, pitch/Y, roll/X in rotating frame)- Parameters:
uomCode
- angular unit to use on all 3 axes- Returns:
- A builder to set other options and build the final vector
-
newEulerOrientationNED
Creates a 3D orientation vector composed of 3 Euler angles expressed in local North-East-Down (NED) frame (order of rotations is heading/Z, pitch/Y, roll/X in rotating frame)- Parameters:
def
- semantic definition of orientation vector (if null,VectorHelper.DEF_ORIENTATION_EULER
is used)uomCode
- angular unit to use on all 3 axes- Returns:
- the new Vector component object
-
newEulerOrientationNED
Default version ofnewEulerOrientationNED(String, String)
with units set to degrees- Parameters:
def
-- Returns:
- the new Vector component object
-
createEulerOrientationECEF
Creates an orientation vector component composed of 3 Euler angles expressed in Earth-Centered-Earth-Fixed (ECEF) frame (order of rotations is X, Y, Z)- Parameters:
uomCode
- angular unit to use on all 3 axes- Returns:
- A builder to set other options and build the final vector
-
newEulerOrientationECEF
Creates an orientation vector component composed of 3 Euler angles expressed in Earth-Centered-Earth-Fixed (ECEF) frame (order of rotations is X, Y, Z)- Parameters:
def
- semantic definition of orientation vector (if null,VectorHelper.DEF_ORIENTATION_EULER
is used)uomCode
- angular unit to use on all 3 axes- Returns:
- the new Vector component object
-
createQuatOrientation
Creates a 4d vector representing an orientation quaternion expressed in the given frame (scalar comes last).- Parameters:
def
- semantic definition of orientation vector (if null,VectorHelper.DEF_ORIENTATION_QUAT
is used)refFrame
- reference frame with respect to which the coordinates of this quaternion are expressed- Returns:
- A builder to set other options and build the final vector
-
newQuatOrientation
Creates a 4d vector representing an orientation quaternion expressed in the given frame (scalar comes last).- Parameters:
def
- semantic definition of orientation vector (if null,VectorHelper.DEF_ORIENTATION_QUAT
is used)refFrame
- reference frame with respect to which the coordinates of this quaternion are expressed- Returns:
- the new Vector component object
-
createQuatOrientationENU
Creates a 4d vector representing an orientation quaternion expressed in ENU frame.- Returns:
- A builder to set other options and build the final vector
-
newQuatOrientationENU
Creates a 4d vector representing an orientation quaternion expressed in ENU frame.- Parameters:
def
- semantic definition of orientation vector (if null,VectorHelper.DEF_ORIENTATION_QUAT
is used)- Returns:
- the new Vector component object
-
createQuatOrientationNED
Creates a 4d vector representing an orientation quaternion expressed in NED frame.- Returns:
- A builder to set other options and build the final vector
-
newQuatOrientationNED
Creates a 4d vector representing an orientation quaternion expressed in NED frame.- Parameters:
def
- semantic definition of orientation vector (if null,VectorHelper.DEF_ORIENTATION_QUAT
is used)- Returns:
- the new Vector component object
-
createQuatOrientationECEF
Creates a 4d vector representing an orientation quaternion expressed in ECEF frame.- Returns:
- A builder to set other options and build the final vector
-
newQuatOrientationECEF
Creates a 4d vector representing an orientation quaternion expressed in ECEF frame.- Parameters:
def
- semantic definition of orientation vector (if null,VectorHelper.DEF_ORIENTATION_QUAT
is used)- Returns:
- the new Vector component object
-