|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.geoloc.Earth
ucar.unidata.geoloc.EarthEllipsoid
public final class EarthEllipsoid
Type-safe enumeration of Earth Ellipsoids. Follows EPSG.
| 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) |
| Constructor Summary | |
|---|---|
protected |
EarthEllipsoid(java.lang.String name,
int epsgId,
double a,
double f)
Constructor. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Objects with same name are equal. |
static java.util.Collection<EarthEllipsoid> |
getAll()
get a collection of all defined EarthEllipsoid objects |
int |
getEpsgId()
EPSG id |
java.lang.String |
getName()
EPSG name |
static EarthEllipsoid |
getType(int epsgId)
Find the EarthEllipsoid that matches this EPSG Id. |
static EarthEllipsoid |
getType(java.lang.String name)
Find the EarthEllipsoid that matches this name. |
int |
hashCode()
Override Object.hashCode() to be consistent with this equals. |
java.lang.String |
toString()
Same as EPSG name |
| Methods inherited from class ucar.unidata.geoloc.Earth |
|---|
getEccentricity, getFlattening, getMajor, getMinor, getRadius |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final EarthEllipsoid WGS84
public static final EarthEllipsoid Airy1830
| Constructor Detail |
|---|
protected EarthEllipsoid(java.lang.String name,
int epsgId,
double a,
double f)
name - EPSG nameepsgId - EPSG ida - semimajor (equatorial) radius, in meters.f - flattening.| Method Detail |
|---|
public static java.util.Collection<EarthEllipsoid> getAll()
public static EarthEllipsoid getType(java.lang.String name)
name - : name to match
public static EarthEllipsoid getType(int epsgId)
epsgId - : epsg Id to match
public java.lang.String getName()
public int getEpsgId()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - test this for equals
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||