public class CotUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CotUtils.LatitudeDirection
The LatitudeDirection enumeration contains values to represent North and South
|
static class |
CotUtils.LatitudeDmsDirection
The LatitudeDmsDirection class represents a latitude value with degrees, minutes, seconds, and a direction (North or South)
|
static class |
CotUtils.LatitudeLongitudePair
The LatitudeLongitudePair class represents a geographic location as a pair of latitude and longitude values
|
static class |
CotUtils.LongitudeDirection
The LongitudeDirection enumeration contains values to represent East and West
|
static class |
CotUtils.LongitudeDmsDirection
The LongitudeDmsDirection class represents a longitude value with degrees, minutes, seconds, and a direction (East or West)
|
Constructor and Description |
---|
CotUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.Date |
convertCotDateStringToDate(java.lang.String date)
Converts a String representation of a date into a Date object
|
static java.lang.String |
convertDateToCotDateString(java.util.Date date)
Converts a Date object into a properly formatted date time string for CoT.
|
static double |
dmsDirectionToLatitude(CotUtils.LatitudeDmsDirection latDms)
Converts a LatitudeDmsDirection representation of a latitude into a
decimal representation of a latitude.
|
static double |
dmsDirectionToLatitude(int deg,
int min,
double sec,
CotUtils.LatitudeDirection dir)
Converts a degrees, minutes, seconds, direction representation of a
latitude into a decimal representation of a latitude.
|
static double |
dmsDirectionToLongitude(CotUtils.LongitudeDmsDirection lonDms)
Converts a LongitudeDmsDirection representation of a longitude into a
decimal representation of a longitude.
|
static double |
dmsDirectionToLongitude(int deg,
int min,
double sec,
CotUtils.LongitudeDirection dir)
Converts a degrees, minutes, seconds, direction representation of a
longitude into a decimal representation of a longitude.
|
static double |
haeToMsl(double hae,
double lat,
double lon)
Converts an altitude as Height Above Ellipsoid to Mean Sea Level using
the NIMA earth gravitation model egm96.
|
static CotUtils.LatitudeDmsDirection |
latitudeToDmsDirection(double lat)
Converts a decimal latitude value into a LatitudeDmsDirection
representation of a latitude.
|
static CotUtils.LongitudeDmsDirection |
longitudeToDmsDirection(double lon)
Converts a decimal longitude value into a LongitudeDmsDirection
representation of a latitude.
|
static double |
mslToHae(double msl,
double lat,
double lon)
Converts an altitude as Mean Sea Level to Height Above Ellipsoid using
the NIMA earth gravitation model egm96
|
public static double mslToHae(double msl, double lat, double lon)
msl
- The mean sea level altitude measurementlat
- The latitudelon
- The longitudepublic static double haeToMsl(double hae, double lat, double lon)
hae
- the double value representing the altitude to convert as height above ellipsoid in meterslat
- the double value representing the latitude at which the altitude conversion takes placelon
- the double value representing the longitude at which the altitude conversion takes placepublic static double dmsDirectionToLatitude(int deg, int min, double sec, CotUtils.LatitudeDirection dir)
public static double dmsDirectionToLatitude(CotUtils.LatitudeDmsDirection latDms)
public static CotUtils.LatitudeDmsDirection latitudeToDmsDirection(double lat)
public static double dmsDirectionToLongitude(int deg, int min, double sec, CotUtils.LongitudeDirection dir)
public static double dmsDirectionToLongitude(CotUtils.LongitudeDmsDirection lonDms)
public static CotUtils.LongitudeDmsDirection longitudeToDmsDirection(double lon)
public static java.lang.String convertDateToCotDateString(java.util.Date date)
date
- the Date to convertpublic static java.util.Date convertCotDateStringToDate(java.lang.String date)
date
- the String representation of the datejava.lang.IllegalArgumentException
- if the String is not a valid ISO 8601 formatted date