public class UTMCoordinateSystem extends visad.georef.MapProjection implements XmlPersistable
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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,
java.awt.geom.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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
org.w3c.dom.Element |
createElement(XmlEncoder encoder)
needed for XmlPersistable
|
boolean |
equals(java.lang.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.
|
java.awt.geom.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,
org.w3c.dom.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.
|
java.lang.String |
toString()
Print elllipsoid mean radius and inverse flattening
|
getCenterLatLon, getLatLon, getXIndex, getYIndex, isLatLonOrder, isXYOrder
getLatitudeIndex, getLongitudeIndex
canConvert, fromReference, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, toReference, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnits
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
public UTMCoordinateSystem(geotransform.ellipsoids.Ellipsoid ellipsoid, int zone, boolean hemiflag) throws visad.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 hemispherevisad.VisADException
- on badness. Throws a NullPointerException if the ellipsoid is null
.public UTMCoordinateSystem(geotransform.ellipsoids.Ellipsoid ellipsoid, int zone, boolean hemiflag, java.awt.geom.Rectangle2D bounds) throws visad.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 hemispherevisad.VisADException
public UTMCoordinateSystem(int zone, boolean hemiflag) throws visad.VisADException
zone
- the UTM zone which has positions to be convertedhemiflag
- a boolean, true if points are in the northern hemispherevisad.VisADException
public java.lang.String toString()
toString
in class visad.georef.MapProjection
public boolean equals(java.lang.Object obj)
equals
in class visad.CoordinateSystem
obj
- other object in questionpublic double[][] ConvertUtmToLatLon(double[][] utmcoords, int[] zone, boolean[] hemisphere_north) throws visad.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 hemispherevisad.VisADException
public double[][] ConvertUtmToLatLon(double[][] utmcoords, int zone, boolean hemisphere_north) throws visad.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)visad.VisADException
public double[][] toReference(double[][] utmcoords) throws visad.VisADException
toReference
in class visad.CoordinateSystem
utmcoords
- array with UTM x,y values; x=utmcoords[0][i],
y=utmcoords[1][i]visad.VisADException
public float[][] toReference(float[][] utmcoords) throws visad.VisADException
toReference
in class visad.CoordinateSystem
utmcoords
- array with UTM x,y values; x=utmcoords[0][i],
y=utmcoords[1][i]visad.VisADException
public double[][] fromReference(double[][] latlon) throws visad.VisADException
fromReference
in class visad.CoordinateSystem
latlon
- lat/lon values (lat = latlon[0][i], lon=latlon[1][i])visad.VisADException
- unable to make transformationpublic float[][] fromReference(float[][] latlon) throws visad.VisADException
fromReference
in class visad.CoordinateSystem
latlon
- lat/lon values (lat = latlon[0][i], lon=latlon[1][i])visad.VisADException
- unable to make transformationpublic int[] getZoneNumbers()
public boolean[] getHemisphereFlags()
public int getZone()
public boolean getHemisphereFlag()
public java.awt.geom.Rectangle2D getDefaultMapArea()
getDefaultMapArea
in class visad.georef.MapProjection
public org.w3c.dom.Element createElement(XmlEncoder encoder)
createElement
in interface XmlPersistable
encoder
- encoder for encodingpublic boolean initFromXml(XmlEncoder encoder, org.w3c.dom.Element node)
initFromXml
in interface XmlPersistable
encoder
- encoder for encodingnode
- node to initialize from