|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.proj.coords.UPSPoint
public class UPSPoint
Class UPSPoint.
This class encapsulates a UPS point.
UPS is known as (Universal Polar Stereographic).
UPS is a coordinate system of Earth's polar regions north of
84 degrees north, and south of 80 degrees south.
This class defaults to WGS-1984.
Field Summary | |
---|---|
protected double |
easting
Easting |
protected double |
northing
Northing |
Constructor Summary | |
---|---|
UPSPoint()
Constructor for the UPSPoint object |
|
UPSPoint(double easting,
double northing)
Constructor for the UPSPoint object |
|
UPSPoint(LatLonPoint llpt)
Constructor for the UPSPoint object |
Method Summary | |
---|---|
static UPSPoint |
createUPSPoint(double lat,
double lon)
Static method to create a UPSPoint object from lat/lon coordinates. |
double |
getEasting()
Gets the easting attribute |
double |
getNorthing()
Gets the easting attribute |
static void |
main(java.lang.String[] args)
Tested against the NIMA calculator |
void |
setEasting(double easting)
Sets the easting attribute |
void |
setNorthing(double northing)
Sets the northing attribute |
LatLonPoint |
toLatLonPoint(boolean southernHemisphere)
Convert a UPSPoint to a LatLonPoint |
java.lang.String |
toString()
Description of the Method |
void |
toUPS(double lat,
double lon)
Converts a lat-lon pair to UPS point |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected double easting
protected double northing
Constructor Detail |
---|
public UPSPoint()
public UPSPoint(double easting, double northing)
easting
- eastingnorthing
- northingpublic UPSPoint(LatLonPoint llpt)
llpt
- LatLonPointMethod Detail |
---|
public static UPSPoint createUPSPoint(double lat, double lon)
lat
- latitude in decimal degreeslon
- longitude in decimal degreespublic void toUPS(double lat, double lon)
lat
- latitude in decimal degreeslon
- longitude in decimal degreespublic LatLonPoint toLatLonPoint(boolean southernHemisphere)
public void setNorthing(double northing)
northing
- The new northing valuepublic void setEasting(double easting)
easting
- The new easting valuepublic double getNorthing()
public double getEasting()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |