ucar.unidata.geoloc
Class EarthEllipsoid

java.lang.Object
  extended by ucar.unidata.geoloc.Earth
      extended by ucar.unidata.geoloc.EarthEllipsoid

public final class EarthEllipsoid
extends Earth

Type-safe enumeration of Earth Ellipsoids. Follows EPSG.

Author:
john caron
See Also:
http://www.epsg.org/, "http://www.epsg.org/"

Field Summary
static EarthEllipsoid Airy1830
          Airy 1830 ellipsoid from EPSG database version 6.14.
static EarthEllipsoid WGS84
          Ellipsoid for WGS84 (edavis - correct 1/f as per EPSG database ver 6.14)
 
Method Summary
 boolean equals(Object o)
          Objects with same name are equal.
static Collection<EarthEllipsoid> getAll()
          get a collection of all defined EarthEllipsoid objects
 int getEpsgId()
          EPSG id
 String getName()
          EPSG name
static EarthEllipsoid getType(int epsgId)
          Find the EarthEllipsoid that matches this EPSG Id.
static EarthEllipsoid getType(String name)
          Find the EarthEllipsoid that matches this name.
 int hashCode()
          Override Object.hashCode() to be consistent with this equals.
 String toString()
          Same as EPSG name
 
Methods inherited from class ucar.unidata.geoloc.Earth
getEccentricity, getEccentricitySquared, getEquatorRadius, getFlattening, getMajor, getMinor, getPoleRadius, getRadius, setEccentricity, setEccentricitySquared, setEquatorRadius, setFlattening, setName, setPoleRadius
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

WGS84

public static final EarthEllipsoid WGS84
Ellipsoid for WGS84 (edavis - correct 1/f as per EPSG database ver 6.14)


Airy1830

public static final EarthEllipsoid Airy1830
Airy 1830 ellipsoid from EPSG database version 6.14.

Method Detail

getAll

public static Collection<EarthEllipsoid> getAll()
get a collection of all defined EarthEllipsoid objects

Returns:
all defined EarthEllipsoid objects

getType

public static EarthEllipsoid getType(String name)
Find the EarthEllipsoid that matches this name.

Parameters:
name - : name to match
Returns:
EarthEllipsoid or null if no match.

getType

public static EarthEllipsoid getType(int epsgId)
Find the EarthEllipsoid that matches this EPSG Id.

Parameters:
epsgId - : epsg Id to match
Returns:
EarthEllipsoid or null if no match.

getName

public String getName()
EPSG name

Overrides:
getName in class Earth
Returns:
the EPSG name

getEpsgId

public int getEpsgId()
EPSG id

Returns:
the EPSG id

toString

public String toString()
Same as EPSG name

Overrides:
toString in class Earth
Returns:
the EPSG name

hashCode

public int hashCode()
Override Object.hashCode() to be consistent with this equals.

Overrides:
hashCode in class Object
Returns:
hashCode

equals

public boolean equals(Object o)
Objects with same name are equal.

Overrides:
equals in class Earth
Parameters:
o - test this for equals
Returns:
+,0,-


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.