public class Location
extends java.lang.Object
Constructor and Description |
---|
Location(double latitude,
double longitude) |
Location(double latitude,
double longitude,
double depth) |
Location(Location loc) |
Modifier and Type | Method and Description |
---|---|
org.dom4j.Element |
asXMLElement() |
java.lang.String |
getAbsoluteLatitude() |
double |
getAbsoluteLatitudeDouble() |
java.lang.String |
getAbsoluteLongitude() |
double |
getAbsoluteLongitudeDouble() |
double |
getDepth() |
double |
getEasting() |
java.lang.String |
getId() |
double |
getLatitude() |
java.lang.String |
getLatitudeAsString() |
double |
getLongitude() |
java.lang.String |
getLongitudeAsString() |
double[] |
getNEDOffsetFrom(Location anotherLocation) |
double |
getNorthing() |
static void |
main(java.lang.String[] args) |
static double |
parseDMSString(java.lang.String dms) |
static Location |
readLocation(org.dom4j.Element elem) |
static Location |
readLocation(org.w3c.dom.Node node) |
void |
setDepth(double depth) |
void |
setEasting(double easting) |
void |
setId(java.lang.String id) |
void |
setLatitude(double latitude) |
void |
setLatitude(java.lang.String latitude) |
void |
setLongitude(double longitude) |
void |
setLongitude(java.lang.String longitude) |
void |
setNorthing(double northing) |
static double[] |
sphericalToCartesianCoordinates(double r,
double theta,
double phi)
This method transforms spherical coordinates to cartesian coordinates.
|
void |
translate(double northOffset,
double eastOffset,
double depthOffset) |
public Location(double latitude, double longitude)
public Location(Location loc)
public Location(double latitude, double longitude, double depth)
public double[] getNEDOffsetFrom(Location anotherLocation)
public java.lang.String getLatitudeAsString()
public java.lang.String getLongitudeAsString()
public java.lang.String getAbsoluteLatitude()
public java.lang.String getAbsoluteLongitude()
public double getAbsoluteLongitudeDouble()
public double getAbsoluteLatitudeDouble()
public double getDepth()
public void setDepth(double depth)
public double getEasting()
public void setEasting(double easting)
public double getLatitude()
public void setLatitude(double latitude)
public void setLatitude(java.lang.String latitude)
public double getLongitude()
public void setLongitude(double longitude)
public void setLongitude(java.lang.String longitude)
public double getNorthing()
public void setNorthing(double northing)
public void translate(double northOffset, double eastOffset, double depthOffset)
public static double[] sphericalToCartesianCoordinates(double r, double theta, double phi)
r
- Distancetheta
- Azimuth (°)phi
- Zenith (°)public static void main(java.lang.String[] args)
public static double parseDMSString(java.lang.String dms)
public org.dom4j.Element asXMLElement()
public static Location readLocation(org.w3c.dom.Node node)
public static Location readLocation(org.dom4j.Element elem)
public java.lang.String getId()
public void setId(java.lang.String id)
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.