|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.CoordinateSystem
visad.georef.NavigatedCoordinateSystem
visad.georef.MapProjection
ucar.visad.UTMCoordinateSystem
public class UTMCoordinateSystem
Transforms between UTM coordinates and lat/lon in degrees. Limitation: all elevations are treated as 0.0. The VisAD CoordinateSystem "Reference" is lat/lon (RealTupleType.LatitudeLongitudeTuple). Uses the SRI geotransform Java package for converters, ellipsoids, etc. Each UTM position requires a complete specification including an x,y position in meters, a zone number, a hemisphere boolean flag (true in northern), and a reference ellipsoid.
| Field Summary | |
|---|---|
static geotransform.ellipsoids.Ellipsoid |
AA
AA = Airy 1830 Ellipsoid |
static geotransform.ellipsoids.Ellipsoid |
AM
AM = Modified Airy Ellipsoid |
static geotransform.ellipsoids.Ellipsoid |
AN
AN = Australian National Ellipsoid |
static geotransform.ellipsoids.Ellipsoid |
BN
BN = Bessel 1841 (Namibia) Ellipsoid |
static geotransform.ellipsoids.Ellipsoid |
BR
BR = Bessel 1841 (Ethiopia Indonesia Japan Korea) |
static geotransform.ellipsoids.Ellipsoid |
CC
CC = Clarke 1866 Ellipsoid |
static geotransform.ellipsoids.Ellipsoid |
CD
CD = Clarke 1880 Ellipsoid |
static geotransform.ellipsoids.Ellipsoid |
EA
EA = Everest (India 1830) Ellipsoid |
static geotransform.ellipsoids.Ellipsoid |
EB
EB = Everest (Sabah & Sarawak) Ellipsoid |
static geotransform.ellipsoids.Ellipsoid |
EC
EC = Everest (India 1956) Ellipsoid |
static geotransform.ellipsoids.Ellipsoid |
ED
ED = Everest (West Malaysia 1969) Ellipsoid |
static geotransform.ellipsoids.Ellipsoid |
EE
EE = Everest (West Malaysia & Singapore 1948) |
static geotransform.ellipsoids.Ellipsoid |
FA
FA = Modified Fischer 1960 Ellipsoid |
static geotransform.ellipsoids.Ellipsoid |
HE
HE = Helmert 1906 Ellipsoid |
static geotransform.ellipsoids.Ellipsoid |
HO
HO = Hough 1960 Ellipsoid |
static geotransform.ellipsoids.Ellipsoid |
IN
IN = International 1924 Ellipsoid |
static geotransform.ellipsoids.Ellipsoid |
KA
KA = Krassovsky 1940 Ellipsoid |
static geotransform.ellipsoids.Ellipsoid |
RF
RF = Geodetic Reference System 1980 (GRS 80) |
static geotransform.ellipsoids.Ellipsoid |
SA
SA = South American 1969 Ellipsoid |
static geotransform.ellipsoids.Ellipsoid |
WD
WD = WGS 72 Ellipsoid |
static geotransform.ellipsoids.Ellipsoid |
WE
WE = WGS 84 Ellipsoid |
| Constructor Summary | |
|---|---|
UTMCoordinateSystem(geotransform.ellipsoids.Ellipsoid ellipsoid,
int zone,
boolean hemiflag)
Constructs an instance of a UTM coordinate transform with the supplied Ellipsoid, zone and hemisphere. |
|
UTMCoordinateSystem(geotransform.ellipsoids.Ellipsoid ellipsoid,
int zone,
boolean hemiflag,
Rectangle2D bounds)
Constructs an instance of a UTM coordinate transform with the supplied Ellipsoid, zone and hemisphere. |
|
UTMCoordinateSystem(int zone,
boolean hemiflag)
Constructs an instance using the WSG 84 ellipsoid, and given zone and hemisphere. |
|
| Method Summary | |
|---|---|
double[][] |
ConvertUtmToLatLon(double[][] utmcoords,
int[] zone,
boolean[] hemisphere_north)
Convert an array of UTM positions to lat/lon. |
double[][] |
ConvertUtmToLatLon(double[][] utmcoords,
int zone,
boolean hemisphere_north)
Convert an array of UTM positions to lat/lon. |
Element |
createElement(XmlEncoder encoder)
needed for XmlPersistable |
boolean |
equals(Object obj)
Check for equality of input object to this UTMCoordinateSystem. |
double[][] |
fromReference(double[][] latlon)
Convert from lat/lon (GDC) coordinates to UTM coords. |
float[][] |
fromReference(float[][] latlon)
Convert from lat/lon (GDC) coordinates to UTM coords. |
Rectangle2D |
getDefaultMapArea()
Get a bounding box in this coordinate system. |
boolean |
getHemisphereFlag()
get boolean flag: if UTM positions in the northern hemisphere, true. |
boolean[] |
getHemisphereFlags()
get array of booleans: if a UTM position is in the northern hemisphere, true. |
int |
getZone()
get single UTM zone number (1...60) for the UTM positions. |
int[] |
getZoneNumbers()
get UTM zone numbers (1...60) for the UTM positions. |
boolean |
initFromXml(XmlEncoder encoder,
Element node)
Do nothing, return true to tell the encoder that it is ok to process any methods or properties. |
double[][] |
toReference(double[][] utmcoords)
Convert an array of UTM positions to lat/lon. |
float[][] |
toReference(float[][] utmcoords)
Convert an array of UTM positions to lat/lon. |
String |
toString()
Print elllipsoid mean radius and inverse flattening |
| Methods inherited from class visad.georef.MapProjection |
|---|
getCenterLatLon, getLatLon, getXIndex, getYIndex, isLatLonOrder, isXYOrder |
| Methods inherited from class visad.georef.NavigatedCoordinateSystem |
|---|
getLatitudeIndex, getLongitudeIndex |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final geotransform.ellipsoids.Ellipsoid AA
public static final geotransform.ellipsoids.Ellipsoid AM
public static final geotransform.ellipsoids.Ellipsoid AN
public static final geotransform.ellipsoids.Ellipsoid BN
public static final geotransform.ellipsoids.Ellipsoid BR
public static final geotransform.ellipsoids.Ellipsoid CC
public static final geotransform.ellipsoids.Ellipsoid CD
public static final geotransform.ellipsoids.Ellipsoid EA
public static final geotransform.ellipsoids.Ellipsoid EB
public static final geotransform.ellipsoids.Ellipsoid EC
public static final geotransform.ellipsoids.Ellipsoid ED
public static final geotransform.ellipsoids.Ellipsoid EE
public static final geotransform.ellipsoids.Ellipsoid FA
public static final geotransform.ellipsoids.Ellipsoid HE
public static final geotransform.ellipsoids.Ellipsoid HO
public static final geotransform.ellipsoids.Ellipsoid IN
public static final geotransform.ellipsoids.Ellipsoid KA
public static final geotransform.ellipsoids.Ellipsoid RF
public static final geotransform.ellipsoids.Ellipsoid SA
public static final geotransform.ellipsoids.Ellipsoid WD
public static final geotransform.ellipsoids.Ellipsoid WE
| Constructor Detail |
|---|
public UTMCoordinateSystem(geotransform.ellipsoids.Ellipsoid ellipsoid,
int zone,
boolean hemiflag)
throws VisADException
ellipsoid - the basis for some UTM coordinate system;
many choices possiblezone - the UTM zone which has positions to be convertedhemiflag - a boolean, true if points are in the northern hemisphere
VisADException - on badness. Throws a NullPointerException if the ellipsoid is null.
public UTMCoordinateSystem(geotransform.ellipsoids.Ellipsoid ellipsoid,
int zone,
boolean hemiflag,
Rectangle2D bounds)
throws VisADException
ellipsoid - the basis for some UTM coordinate system;
many choices possiblezone - the UTM zone which has positions to be convertedbounds - Linear2DSet describing the bounds of this
MapProjectionhemiflag - a boolean, true if points are in the northern hemisphere
VisADException
public UTMCoordinateSystem(int zone,
boolean hemiflag)
throws VisADException
zone - the UTM zone which has positions to be convertedhemiflag - a boolean, true if points are in the northern hemisphere
VisADException| Method Detail |
|---|
public String toString()
toString in class MapProjectionpublic boolean equals(Object obj)
equals in class CoordinateSystemobj - other object in question
public double[][] ConvertUtmToLatLon(double[][] utmcoords,
int[] zone,
boolean[] hemisphere_north)
throws VisADException
utmcoords - array with UTM x,y values;
x=utmcoords[0][i], y=utmcoords[1][i]zone - array of the UTM zones for each of these positionshemisphere_north - array of the UTM flags for each of these
positions true if the UTM position is in
the northern hemisphere
VisADException
public double[][] ConvertUtmToLatLon(double[][] utmcoords,
int zone,
boolean hemisphere_north)
throws VisADException
utmcoords - array with UTM x,y values;
x=utmcoords[0][i], y=utmcoords[1][i]zone - the single UTM zone for all of these positionshemisphere_north - the hemisphere flag for all of
these positions (true=N)
VisADException
public double[][] toReference(double[][] utmcoords)
throws VisADException
toReference in class CoordinateSystemutmcoords - array with UTM x,y values; x=utmcoords[0][i],
y=utmcoords[1][i]
VisADException
public float[][] toReference(float[][] utmcoords)
throws VisADException
toReference in class CoordinateSystemutmcoords - array with UTM x,y values; x=utmcoords[0][i],
y=utmcoords[1][i]
VisADException
public double[][] fromReference(double[][] latlon)
throws VisADException
fromReference in class CoordinateSystemlatlon - lat/lon values (lat = latlon[0][i], lon=latlon[1][i])
VisADException - unable to make transformation
public float[][] fromReference(float[][] latlon)
throws VisADException
fromReference in class CoordinateSystemlatlon - lat/lon values (lat = latlon[0][i], lon=latlon[1][i])
VisADException - unable to make transformationpublic int[] getZoneNumbers()
public boolean[] getHemisphereFlags()
public int getZone()
public boolean getHemisphereFlag()
public Rectangle2D getDefaultMapArea()
getDefaultMapArea in class MapProjectionpublic Element createElement(XmlEncoder encoder)
createElement in interface XmlPersistableencoder - encoder for encoding
public boolean initFromXml(XmlEncoder encoder,
Element node)
initFromXml in interface XmlPersistableencoder - encoder for encodingnode - node to initialize from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||