|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectus.zuercher.gpx2map.coord.UTM
public final class UTM
UTM represents a location on the UTM (Universal Transverse Mercator) grid.
See: The USGS UTM Grid factsheet
UTM is limited to the latitudes between 84 degrees N and 80 degrees S. See: http://earth-info.nga.mil/GandG/coordsys/grids/utm_basics_2005.doc and http://www.maptools.com/UsingUTM/UTMdetails.html.
| Field Summary | |
|---|---|
private double |
easting
UTM Easting. |
private char |
letter
UTM Letter Designator. |
private double |
northing
UTM Northing. |
private int |
zone
UTM Zone. |
| Constructor Summary | |
|---|---|
UTM(double northing,
double easting,
int zone,
char letter)
Construct a new UTM coordinate. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Test whether this coordinate is equal to another. |
boolean |
equals(UTM other)
Test whether this coordinate is equal to another. |
double |
getEasting()
Return the meters of easting for this UTM coordinate. |
char |
getLetter()
Return the UTM latitudinal letter designator for this UTM coordinate. |
double |
getNorthing()
Return the meters of northing for this UTM coordinate. |
int |
getZone()
Return the UTM longitudinal zone for this UTM coordinate. |
int |
hashCode()
Compute a reasonable hash code for this coordinate. |
String |
toString()
Generate a string describing this coordinate. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final double northing
private final double easting
private final int zone
private final char letter
| Constructor Detail |
|---|
public UTM(double northing,
double easting,
int zone,
char letter)
northing - meters of northingeasting - meters of eastingzone - UTM longitutdinal zoneletter - UTM latitudinal letter designator| Method Detail |
|---|
public double getNorthing()
public double getEasting()
public int getZone()
public char getLetter()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(UTM other)
other - coordinate to compare to
public boolean equals(Object other)
equals in class Objectother - coordinate to compare to
ClassCastException - if other is not a
UTM
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||