Package elki.math.geodesy
Class SphericalVincentyEarthModel
- java.lang.Object
-
- elki.math.geodesy.AbstractEarthModel
-
- elki.math.geodesy.SphericalVincentyEarthModel
-
- All Implemented Interfaces:
EarthModel
public class SphericalVincentyEarthModel extends AbstractEarthModel
A simple spherical earth model using radius 6371009 m.- Since:
- 0.6.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SphericalVincentyEarthModel.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description static double
EARTH_RADIUS
Earth radius approximation in m.static SphericalVincentyEarthModel
STATIC
Spherical earth model, static instance.-
Fields inherited from interface elki.math.geodesy.EarthModel
MODEL_ID
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SphericalVincentyEarthModel()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
distanceRad(double lat1, double lng1, double lat2, double lng2)
Compute the geodetic distance between two surface coordinates.double
ecefToLatRad(double x, double y, double z)
Convert a 3D coordinate pair to the corresponding latitude.double[]
latLngRadToECEF(double lat, double lng)
Map a radians latitude, longitude pair to 3D X-Y-Z coordinates, using a spherical earth model.double[]
latLngRadToECEF(double lat, double lng, double h)
Map a radians latitude, longitude pair to 3D X-Y-Z coordinates, using a spherical earth model.-
Methods inherited from class elki.math.geodesy.AbstractEarthModel
distanceDeg, ecefToLatDeg, ecefToLatLngDegHeight, ecefToLatLngRadHeight, ecefToLngDeg, ecefToLngRad, getEquatorialRadius, getPolarDistance, latLngDegToECEF, latLngDegToECEF, minDistDeg, minDistRad, toString
-
-
-
-
Field Detail
-
STATIC
public static final SphericalVincentyEarthModel STATIC
Spherical earth model, static instance.
-
EARTH_RADIUS
public static final double EARTH_RADIUS
Earth radius approximation in m. As per International Union of Geodesy and Geophysics (IUGG):- See Also:
- Constant Field Values
-
-
Method Detail
-
latLngRadToECEF
public double[] latLngRadToECEF(double lat, double lng)
Description copied from interface:EarthModel
Map a radians latitude, longitude pair to 3D X-Y-Z coordinates, using a spherical earth model.The coordinate system is usually chosen such that the earth rotates around the Z axis and X points to the prime meridian and Equator.
- Specified by:
latLngRadToECEF
in interfaceEarthModel
- Overrides:
latLngRadToECEF
in classAbstractEarthModel
- Parameters:
lat
- Latitude in radianslng
- Longitude in radians- Returns:
- Coordinate triple, in meters.
-
latLngRadToECEF
public double[] latLngRadToECEF(double lat, double lng, double h)
Description copied from interface:EarthModel
Map a radians latitude, longitude pair to 3D X-Y-Z coordinates, using a spherical earth model.The coordinate system is usually chosen such that the earth rotates around the Z axis and X points to the prime meridian and Equator.
- Specified by:
latLngRadToECEF
in interfaceEarthModel
- Overrides:
latLngRadToECEF
in classAbstractEarthModel
- Parameters:
lat
- Latitude in radianslng
- Longitude in radiansh
- Height- Returns:
- Coordinate triple, in meters.
-
ecefToLatRad
public double ecefToLatRad(double x, double y, double z)
Description copied from interface:EarthModel
Convert a 3D coordinate pair to the corresponding latitude.- Specified by:
ecefToLatRad
in interfaceEarthModel
- Overrides:
ecefToLatRad
in classAbstractEarthModel
- Parameters:
x
- X valuey
- Y valuez
- Z value- Returns:
- Latitude in radians
-
distanceRad
public double distanceRad(double lat1, double lng1, double lat2, double lng2)
Description copied from interface:EarthModel
Compute the geodetic distance between two surface coordinates.- Specified by:
distanceRad
in interfaceEarthModel
- Overrides:
distanceRad
in classAbstractEarthModel
- Parameters:
lat1
- Latitude of first in radians.lng1
- Longitude of first in radians.lat2
- Latitude of second in radians.lng2
- Longitude of second in radians.- Returns:
- Distance in meters.
-
-