|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.proj.coords.UTMPoint
com.bbn.openmap.proj.coords.ZonedUTMPoint
public class ZonedUTMPoint
A ZonedUTMPoint is a UTMPoint that handles a MGRS zone letter instead of N or S.
Field Summary |
---|
Fields inherited from class com.bbn.openmap.proj.coords.UTMPoint |
---|
easting, northing, zone_letter, zone_number |
Constructor Summary | |
---|---|
ZonedUTMPoint()
Constructor pass-through. |
|
ZonedUTMPoint(double northing,
double easting,
int zone_number,
char zone_letter)
|
|
ZonedUTMPoint(LatLonPoint llpoint)
Constructor pass-through. |
|
ZonedUTMPoint(LatLonPoint llpoint,
Ellipsoid ellip)
Constructor pass-through. |
|
ZonedUTMPoint(UTMPoint point)
Constructor pass-through. |
Method Summary | |
---|---|
protected char |
getLetterDesignator(double lat)
Determines the correct MGRS letter designator for the given latitude returns 'Z' if latitude is outside the MGRS limits of 84N to 80S. |
static LatLonPoint |
ZonedUTMtoLL(Ellipsoid ellip,
double UTMNorthing,
double UTMEasting,
int ZoneNumber,
char ZoneLetter,
LatLonPoint llpoint)
Converts UTM coords to lat/long given an ellipsoid. |
Methods inherited from class com.bbn.openmap.proj.coords.UTMPoint |
---|
checkZone, equals, getZoneNumber, hashCode, LLtoUTM, LLtoUTM, LLtoUTM, LLtoUTM, toLatLonPoint, toLatLonPoint, toLatLonPoint, toString, UTMtoLL, UTMtoLL, UTMtoLL, UTMtoLL |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ZonedUTMPoint()
public ZonedUTMPoint(double northing, double easting, int zone_number, char zone_letter)
northing
- The northing component.easting
- The easting component.zone_number
- The zone of the coordinate.zone_letter
- MGRS zone letterpublic ZonedUTMPoint(UTMPoint point)
public ZonedUTMPoint(LatLonPoint llpoint)
public ZonedUTMPoint(LatLonPoint llpoint, Ellipsoid ellip)
Method Detail |
---|
public static LatLonPoint ZonedUTMtoLL(Ellipsoid ellip, double UTMNorthing, double UTMEasting, int ZoneNumber, char ZoneLetter, LatLonPoint llpoint)
Equations from USGS Bulletin 1532
East Longitudes are positive, West longitudes are negative.
North latitudes are positive, South latitudes are negative.
ellip
- an ellipsoid definition.UTMNorthing
- A float value for the northing to be converted.UTMEasting
- A float value for the easting to be converted.ZoneNumber
- An int value specifiying the UTM zone number.ZoneLetter
- A char value specifying the ZoneLetter within the
ZoneNumber, letter being MGRS zone.llpoint
- a LatLonPoint, if you want it to be filled in with the
results. If null, a new LatLonPoint will be allocated.
null
if conversion failed. If you pass in a
LatLonPoint, it will be returned as well, if successful.protected char getLetterDesignator(double lat)
getLetterDesignator
in class UTMPoint
lat
- The float value of the latitude.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |