public class UPSPoint
extends java.lang.Object
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.
Modifier and Type | Field and Description |
---|---|
protected double |
easting
Easting
|
protected double |
northing
Northing
|
Constructor and Description |
---|
UPSPoint()
Constructor for the UPSPoint object
|
UPSPoint(double easting,
double northing)
Constructor for the UPSPoint object
|
UPSPoint(LatLonPoint llpt)
Constructor for the UPSPoint object
|
Modifier and Type | Method and Description |
---|---|
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
|
public UPSPoint()
public UPSPoint(double easting, double northing)
easting
- eastingnorthing
- northingpublic UPSPoint(LatLonPoint llpt)
llpt
- LatLonPointpublic 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)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details