|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.iu.gps.COORD
The COORD class encapsulates all methods related to earth coordinate transformations. It can transform earth coordinates between a huge number of earth dates, and it can transform from / to GaussKrueger coordinates.
Field Summary | |
protected int |
datum
|
static DATUM[] |
gDatum
List of geodetic earth dates. |
static ELLIPSOID[] |
gEllipsoid
List of geodetic earth ellipsoids. |
Constructor Summary | |
COORD(int _datum)
Constructor for the COORD object |
Method Summary | |
protected XY |
convertFromTM(double x,
double y,
double lat0,
double lon0,
double k0)
Performs re-projection from TM. |
static XY |
convertToGaussKrueger(double lat,
double lon)
Converts latitude / longitude (WGS84) coordinates to German GaussKrueger coordinates. |
static XY |
convertToGaussKrueger(double lat,
double lon,
int datum)
Converts latitude / longitude (rel. to given datum) coordinates to German GaussKrueger coordinates. |
static XY |
convertToGK(double lat,
double lon)
Converts lat/long to Gauss-Krueger. |
static XY |
convertToLatLong(double x,
double y)
Converts GaussKrueger coordinates to latitude / longitude relative to the WGS84 earth datum. |
static XY |
convertToLatLong(double x,
double y,
int d)
Converts to latitude / longitude using the given earth datum. |
static XY |
convertToLL(double x,
double y)
Converts Gauss-Krueger to lat/long. |
protected XY |
convertToTM(double lat,
double lon,
double lat0,
double lon0,
double k0)
Performs a transmercator (TM) projection. |
protected XY |
datumParams(int datum)
Retrieve earth datum parameters for given ID. |
protected double |
M(double phi,
double a,
double es)
Calculate M. |
static void |
main(java.lang.String[] args)
The main program for the COORD class |
static XY |
translate(boolean fromWGS84,
double latitude,
double longitude,
int datumID)
Method to convert coordinates from/to WGS84 coordinates. |
static XY |
translate(int fromID,
int toID,
double latitude,
double longitude)
Translate coordinates related to one earth datum (fromID) to another earth datum (toID). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final ELLIPSOID[] gEllipsoid
public static final DATUM[] gDatum
protected int datum
Constructor Detail |
public COORD(int _datum)
_datum
- Index into gDatum table of datum to use.Method Detail |
public static XY translate(int fromID, int toID, double latitude, double longitude)
gDatum
.fromID
- earth datum to translate fromtoID
- earth datum to translate tolatitude
- latitude of coord. to translatelongitude
- longitude of coord. to translatepublic static XY translate(boolean fromWGS84, double latitude, double longitude, int datumID)
gDatum
.fromWGS84
- Parameterlatitude
- Parameterlongitude
- ParameterdatumID
- Parameterpublic static XY convertToGaussKrueger(double lat, double lon, int datum)
lat
- Latitudelon
- Longitudedatum
- Datum of the given coord.public static XY convertToGaussKrueger(double lat, double lon)
lat
- Latitudelon
- Longitudepublic static XY convertToLatLong(double x, double y)
x
- Parametery
- Parameterpublic static XY convertToLatLong(double x, double y, int d)
x
- GaussKrueger X.y
- GaussKrueger Y.d
- Earth datum to use for resulting coordinates.public static void main(java.lang.String[] args)
args
- The command line argumentspublic static XY convertToLL(double x, double y)
x
- Parametery
- Parameterpublic static XY convertToGK(double lat, double lon)
lat
- Parameterlon
- Parameterprotected XY datumParams(int datum)
datum
- Parameterprotected XY convertToTM(double lat, double lon, double lat0, double lon0, double k0)
lat
- Parameterlon
- Parameterlat0
- Parameterlon0
- Parameterk0
- Parameterprotected XY convertFromTM(double x, double y, double lat0, double lon0, double k0)
x
- Parametery
- Parameterlat0
- Parameterlon0
- Parameterk0
- Parameterprotected double M(double phi, double a, double es)
phi
- Parametera
- Parameteres
- Parameter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |