com.metsci.glimpse.util.geo.datum
Class DatumSphere

java.lang.Object
  extended by com.metsci.glimpse.util.geo.datum.Datum
      extended by com.metsci.glimpse.util.geo.datum.DatumSphere
Direct Known Subclasses:
DatumSphereUnit, DatumSphereWgs84

public class DatumSphere
extends Datum

Author:
osborn

Field Summary
 
Fields inherited from class com.metsci.glimpse.util.geo.datum.Datum
unitSphere, wgs84, wgs84sphere
 
Constructor Summary
DatumSphere(double radius)
           
 
Method Summary
 LatLonGeo displace(LatLonGeo from, double dist, double azimuth)
           
 double getAzimuth(LatLonGeo from, LatLonGeo to)
           
 double getDistance(LatLonGeo from, LatLonGeo to)
           
 DistanceAzimuth getDistanceAzimuth(LatLonGeo from, LatLonGeo to)
           
 double getRadius()
           
 DatumSphere getSphereApproximation()
           
 boolean isSpherical()
           
 LatLonGeo toLatLonGeo(double x, double y, double z)
           
 LatLonGeo toLatLonGeo(LatLonRect from)
           
 LatLonRect toLatLonRect(double northLatRad, double eastLonRad, double altitude)
           
 LatLonRect toLatLonRect(LatLonGeo from)
           
 LatLonGeo toWgs84(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
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatumSphere

public DatumSphere(double radius)
Method Detail

toLatLonGeo

public LatLonGeo toLatLonGeo(LatLonRect from)
Overrides:
toLatLonGeo in class Datum

toLatLonGeo

public LatLonGeo toLatLonGeo(double x,
                             double y,
                             double z)
Overrides:
toLatLonGeo in class Datum

toLatLonRect

public LatLonRect toLatLonRect(LatLonGeo from)
Overrides:
toLatLonRect in class Datum

toLatLonRect

public LatLonRect toLatLonRect(double northLatRad,
                               double eastLonRad,
                               double altitude)
Overrides:
toLatLonRect in class Datum

displace

public LatLonGeo displace(LatLonGeo from,
                          double dist,
                          double azimuth)
Overrides:
displace in class Datum

getDistance

public double getDistance(LatLonGeo from,
                          LatLonGeo to)
Overrides:
getDistance in class Datum

getAzimuth

public double getAzimuth(LatLonGeo from,
                         LatLonGeo to)
Overrides:
getAzimuth in class Datum

getDistanceAzimuth

public DistanceAzimuth getDistanceAzimuth(LatLonGeo from,
                                          LatLonGeo to)
Overrides:
getDistanceAzimuth in class Datum

isSpherical

public boolean isSpherical()
Overrides:
isSpherical in class Datum

getSphereApproximation

public DatumSphere getSphereApproximation()
Specified by:
getSphereApproximation in class Datum

toWgs84

public LatLonGeo toWgs84(LatLonGeo llg)
Converts geocentric latitude to a geodetic latitude. See Datum.toGeodeticLatitude(LatLonGeo).

NOTE: Altitude is passed through unchanged.

Specified by:
toWgs84 in class Datum

getRadius

public double getRadius()


Copyright © 2012 Metron, Inc.. All Rights Reserved.