public class GeodeticToUTMConverter extends Object
Utility Class to convert WGS84 Geodetic coordinates to a Universal Transverse Mercator (UTM) Coordinate System, i.e. X3D local coordinates to a representation in Geodetic Decimal Degrees (DD) referenced to the WGS 84 datum
| Constructor and Description | 
|---|
| GeodeticToUTMConverter()Default constructor | 
| GeodeticToUTMConverter(float lat,
                      float lon)Constructor initializing with raw latitude and longitude | 
| GeodeticToUTMConverter(com.bbn.openmap.LatLonPoint llp)Constructor initializing with a LatLongPoint | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addOffsetToUTM(float[] offset)Add an offset to the GeoCenter which takes into account negative
 values. | 
| void | addOffsetToUTM(float x,
              float y)Add an offset to the GeoCenter which takes into account negative
 values. | 
| float[] | getArrayOffsetFromUTM()Returns an array offset from the GeoCenter in lat/long order | 
| com.bbn.openmap.LatLonPoint | getLatLonPointOffsetFromUTM()Returns a LatLonPoint offset from the GeoCenter | 
| com.bbn.openmap.proj.coords.UTMPoint | getUTM() | 
| static void | main(String[] args)Command line entry point for this class | 
| void | setUTM(float lat,
      float lon)Sets the WGS84 GeoCenter coordinates and transforms them to UTM coordinates | 
| void | setUTM(com.bbn.openmap.LatLonPoint llp)Sets the WGS84 GeoCenter coordinates and transforms them to UTM coordinates | 
| void | setUTM(com.bbn.openmap.proj.coords.UTMPoint utmPoint) | 
public GeodeticToUTMConverter()
public GeodeticToUTMConverter(com.bbn.openmap.LatLonPoint llp)
llp - the LatLongPoint to initialize withpublic GeodeticToUTMConverter(float lat,
                      float lon)
lat - the latitude to initialize withlon - the longitude to initialize withpublic final void setUTM(float lat,
          float lon)
lat - LATITUDElon - LONGITUDEpublic final void setUTM(com.bbn.openmap.LatLonPoint llp)
llp - a LatLonPointpublic com.bbn.openmap.proj.coords.UTMPoint getUTM()
public void setUTM(com.bbn.openmap.proj.coords.UTMPoint utmPoint)
utmPoint - the utm to setpublic void addOffsetToUTM(float x,
                  float y)
Add an offset to the GeoCenter which takes into account negative values. The x axis is easting. The y axis is northing.
x - the easting in meters to add as an offset from the GeoCentery - the northing in meters to add as an offset from the GeoCenterpublic void addOffsetToUTM(float[] offset)
Add an offset to the GeoCenter which takes into account negative values. The X axis is easting. The Y axis is northing.
offset - the (easting, northing) utm to add as an offset from the GeoCenterpublic final float[] getArrayOffsetFromUTM()
public final com.bbn.openmap.LatLonPoint getLatLonPointOffsetFromUTM()
public static void main(String[] args)
args - command line arguments (if any)