Documentation of 'visad.georef.EarthLocationTuple' Java class
EarthLocationTuple
visad.georef

Class EarthLocationTuple

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Data, EarthLocation, LatLonPoint, RealTupleIface, Thing, TupleIface


    public class EarthLocationTuple
    extends RealTuple
    implements EarthLocation
    RealTuple implementation of EarthLocation for representing a location on the earth's surface in terms of latitude, longitude and altitude above sea level. In this implementation, the RealTuple is (latitude, longitude, altitude) and has a MathType of RealTupleType.LatitudeLongitudeAltitude.
    See Also:
    Serialized Form
    • Field Detail

      • DEFAULT_UNITS

        public static final Unit[] DEFAULT_UNITS
    • Constructor Detail

      • EarthLocationTuple

        public EarthLocationTuple()
                           throws VisADException,
                                  java.rmi.RemoteException
        Construct an EarthLocationTuple with missing values
        Throws:
        VisADException - unable to create necessary VisAD object
        java.rmi.RemoteException - unable to create necessary remote object
      • EarthLocationTuple

        public EarthLocationTuple(Real lat,
                                  Real lon,
                                  Real alt)
                           throws VisADException,
                                  java.rmi.RemoteException
        Construct an EarthLocationTuple from Reals of lat, lon, alt
        Parameters:
        lat - Real representing the latitude
        lon - Real representing the longitude
        alt - Real representing the altitude
        Throws:
        VisADException - unable to create necessary VisAD object
        java.rmi.RemoteException - unable to create necessary remote object
      • EarthLocationTuple

        public EarthLocationTuple(Real lat,
                                  Real lon,
                                  Real alt,
                                  Unit[] units,
                                  boolean checkUnits)
                           throws VisADException,
                                  java.rmi.RemoteException
        Construct an EarthLocationTuple from Reals of lat, lon, alt
        Parameters:
        lat - Real representing the latitude
        lon - Real representing the longitude
        alt - Real representing the altitude
        units - array of Units. Must be same as Real units or null
        checkUnits - true if should check the units
        Throws:
        VisADException - unable to create necessary VisAD object
        java.rmi.RemoteException - unable to create necessary remote object
      • EarthLocationTuple

        public EarthLocationTuple(double lat,
                                  double lon,
                                  double alt)
                           throws VisADException,
                                  java.rmi.RemoteException
        Construct an EarthLocationTuple from double values of lat, lon, alt
        Parameters:
        lat - latitude (degrees North positive)
        lon - longitude (degrees East positive)
        alt - altitude (meters above sea level)
        Throws:
        VisADException - unable to create necessary VisAD object
        java.rmi.RemoteException - unable to create necessary remote object
      • EarthLocationTuple

        public EarthLocationTuple(LatLonPoint latlon,
                                  Real alt)
                           throws VisADException,
                                  java.rmi.RemoteException
        Construct an EarthLocationTuple from a LatLonPoint and an altitude
        Parameters:
        latlon - LatLonPoint
        alt - Real representing the altitude
        Throws:
        VisADException - unable to create necessary VisAD object
        java.rmi.RemoteException - unable to create necessary remote object
    • Method Detail

      • getLatitude

        public Real getLatitude()
        Get the latitude of this location
        Specified by:
        getLatitude in interface LatLonPoint
        Returns:
        Real representing the latitude
      • getLongitude

        public Real getLongitude()
        Get the longitude of this location
        Specified by:
        getLongitude in interface LatLonPoint
        Returns:
        Real representing the longitude
      • getAltitude

        public Real getAltitude()
        Get the altitude of this location
        Specified by:
        getAltitude in interface EarthLocation
        Returns:
        Real representing the altitude
      • getLatLonPoint

        public LatLonPoint getLatLonPoint()
        Get the lat/lon of this location as a LatLonPoint
        Specified by:
        getLatLonPoint in interface EarthLocation
        Returns:
        location of this point.
      • toString

        public java.lang.String toString()
        Description copied from class: RealTuple
        Provide a String representation of this RealTuple.
        Specified by:
        toString in interface RealTupleIface
        Overrides:
        toString in class RealTuple
        Returns:
        a String representation of this

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.