public class GeoProjectionUtils extends Object
Modifier and Type | Field and Description |
---|---|
static double |
ECCENTRICITY
first eccentricity (e)
|
static double |
FLATTENING
earth flattening factor (f)
|
static double |
MAX_LAT_RADIANS
max latitude value in radians
|
static double |
MAX_LON_RADIANS
max longitude value in radians
|
static double |
MIN_LAT_RADIANS
min latitude value in radians
|
static double |
MIN_LON_RADIANS
min longitude value in radians
|
static double |
SEMIMAJOR_AXIS
major (a) axis in meters
|
static double |
SEMIMAJOR_AXIS2
major axis squared (a2)
|
static double |
SEMIMINOR_AXIS
minor (b) axis in meters
|
static double |
SEMIMINOR_AXIS2
minor axis squared (b2)
|
Modifier and Type | Method and Description |
---|---|
static double |
bearingGreatCircle(double lon1,
double lat1,
double lon2,
double lat2)
Finds the bearing (in degrees) between 2 geo points (lon, lat) using great circle arc
|
static double[] |
ecfToENU(double x,
double y,
double z,
double centerLon,
double centerLat,
double centerAlt,
double[] enu)
Convert from Earth-Centered-Fixed to Easting, Northing, Up Right Hand System
|
static double[] |
ecfToLLA(double x,
double y,
double z,
double[] lla)
Converts from geocentric earth-centered earth-fixed to geodesic lat/lon/alt
|
static double[] |
enuToECF(double x,
double y,
double z,
double centerLon,
double centerLat,
double centerAlt,
double[] ecf)
Convert from Easting, Northing, Up Right-Handed system to Earth Centered Fixed system
|
static double[] |
enuToLLA(double x,
double y,
double z,
double centerLon,
double centerLat,
double centerAlt,
double[] lla)
Converts from East North Up right-hand rule to lat lon alt in degrees
|
static double[] |
llaToECF(double lon,
double lat,
double alt,
double[] ecf)
Converts from geodesic lon lat alt to geocentric earth-centered earth-fixed
|
static double[] |
llaToENU(double lon,
double lat,
double alt,
double centerLon,
double centerLat,
double centerAlt,
double[] enu)
Converts from lat lon alt (in degrees) to East North Up right-hand coordinate system
|
static double[] |
pointFromLonLatBearingGreatCircle(double lon,
double lat,
double bearing,
double dist,
double[] pt)
Finds a point along a bearing from a given lon,lat geolocation using great circle arc
|
static double[] |
pointFromLonLatBearingVincenty(double lon,
double lat,
double bearing,
double dist,
double[] pt)
Finds a point along a bearing from a given lon,lat geolocation using vincenty's distance formula
|
public static final double SEMIMAJOR_AXIS
public static final double FLATTENING
public static final double SEMIMINOR_AXIS
public static final double ECCENTRICITY
public static final double SEMIMAJOR_AXIS2
public static final double SEMIMINOR_AXIS2
public static final double MIN_LON_RADIANS
public static final double MIN_LAT_RADIANS
public static final double MAX_LON_RADIANS
public static final double MAX_LAT_RADIANS
public static final double[] ecfToLLA(double x, double y, double z, double[] lla)
x
- Cartesian x coordinatey
- Cartesian y coordinatez
- Cartesian z coordinatella
- 0: longitude 1: latitude: 2: altitudepublic static final double[] llaToECF(double lon, double lat, double alt, double[] ecf)
lon
- geodesic longitudelat
- geodesic latitudealt
- geodesic altitudeecf
- reusable earth-centered earth-fixed resultpublic static double[] llaToENU(double lon, double lat, double alt, double centerLon, double centerLat, double centerAlt, double[] enu)
lon
- longitude in degreeslat
- latitude in degreesalt
- altitude in meterscenterLon
- reference point longitude in degreescenterLat
- reference point latitude in degreescenterAlt
- reference point altitude in metersenu
- result east, north, up coordinatepublic static double[] enuToLLA(double x, double y, double z, double centerLon, double centerLat, double centerAlt, double[] lla)
x
- easting (in meters)y
- northing (in meters)z
- up (in meters)centerLon
- reference point longitude (in degrees)centerLat
- reference point latitude (in degrees)centerAlt
- reference point altitude (in meters)lla
- resulting lat, lon, alt point (in degrees)public static double[] ecfToENU(double x, double y, double z, double centerLon, double centerLat, double centerAlt, double[] enu)
x
- ECF X coordinate (in meters)y
- ECF Y coordinate (in meters)z
- ECF Z coordinate (in meters)centerLon
- ENU origin longitude (in degrees)centerLat
- ENU origin latitude (in degrees)centerAlt
- ENU altitude (in meters)enu
- reusable enu resultpublic static double[] enuToECF(double x, double y, double z, double centerLon, double centerLat, double centerAlt, double[] ecf)
x
- ENU x coordinate (in meters)y
- ENU y coordinate (in meters)z
- ENU z coordinate (in meters)centerLon
- ENU origin longitude (in degrees)centerLat
- ENU origin latitude (in degrees)centerAlt
- ENU origin altitude (in meters)ecf
- reusable ecf resultpublic static final double[] pointFromLonLatBearingVincenty(double lon, double lat, double bearing, double dist, double[] pt)
lon
- origin longitude in degreeslat
- origin latitude in degreesbearing
- azimuthal bearing in degreesdist
- distance in meterspt
- resulting pointpublic static final double[] pointFromLonLatBearingGreatCircle(double lon, double lat, double bearing, double dist, double[] pt)
lon
- origin longitude in degreeslat
- origin latitude in degreesbearing
- azimuthal bearing in degreesdist
- distance in meterspt
- resulting pointpublic static double bearingGreatCircle(double lon1, double lat1, double lon2, double lat2)
lon1
- first point longitude in degreeslat1
- first point latitude in degreeslon2
- second point longitude in degreeslat2
- second point latitude in degreesCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.