Class DatumSphere
- java.lang.Object
-
- com.metsci.glimpse.util.geo.datum.Datum
-
- com.metsci.glimpse.util.geo.datum.DatumSphere
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DatumSphereUnit,DatumSphereWgs84
public class DatumSphere extends Datum
- Author:
- osborn
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.metsci.glimpse.util.geo.datum.Datum
unitSphere, wgs84, wgs84sphere
-
-
Constructor Summary
Constructors Constructor Description DatumSphere(double radius)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LatLonGeodisplace(LatLonGeo from, double dist, double azimuth)doublegetAzimuth(LatLonGeo from, LatLonGeo to)doublegetDistance(LatLonGeo from, LatLonGeo to)DistanceAzimuthgetDistanceAzimuth(LatLonGeo from, LatLonGeo to)doublegetRadius()DatumSpheregetSphereApproximation()booleanisSpherical()LatLonGeotoLatLonGeo(double x, double y, double z)LatLonGeotoLatLonGeo(LatLonRect from)LatLonRecttoLatLonRect(double northLatRad, double eastLonRad, double altitude)LatLonRecttoLatLonRect(LatLonGeo from)LatLonGeotoWgs84(LatLonGeo llg)Converts geocentric latitude to a geodetic latitude.-
Methods inherited from class com.metsci.glimpse.util.geo.datum.Datum
equals, fromEnu, getEccentricity, getEccentricitySquared, getEquatorialRadius, getFlattening, getPolarRadius, hashCode, toEnu, toGeocentricLatitude, toGeodeticLatitude
-
-
-
-
Method Detail
-
toLatLonGeo
public LatLonGeo toLatLonGeo(LatLonRect from)
- Overrides:
toLatLonGeoin classDatum
-
toLatLonGeo
public LatLonGeo toLatLonGeo(double x, double y, double z)
- Overrides:
toLatLonGeoin classDatum
-
toLatLonRect
public LatLonRect toLatLonRect(LatLonGeo from)
- Overrides:
toLatLonRectin classDatum
-
toLatLonRect
public LatLonRect toLatLonRect(double northLatRad, double eastLonRad, double altitude)
- Overrides:
toLatLonRectin classDatum
-
getDistance
public double getDistance(LatLonGeo from, LatLonGeo to)
- Overrides:
getDistancein classDatum
-
getAzimuth
public double getAzimuth(LatLonGeo from, LatLonGeo to)
- Overrides:
getAzimuthin classDatum
-
getDistanceAzimuth
public DistanceAzimuth getDistanceAzimuth(LatLonGeo from, LatLonGeo to)
- Overrides:
getDistanceAzimuthin classDatum
-
isSpherical
public boolean isSpherical()
- Overrides:
isSphericalin classDatum
-
getSphereApproximation
public DatumSphere getSphereApproximation()
- Specified by:
getSphereApproximationin classDatum
-
toWgs84
public LatLonGeo toWgs84(LatLonGeo llg)
Converts geocentric latitude to a geodetic latitude. SeeDatum.toGeodeticLatitude(LatLonGeo).NOTE: Altitude is passed through unchanged.
-
getRadius
public double getRadius()
-
-