|
||||||||||
| 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 |
WGS84
_more_ |
| Constructor Summary | |
|---|---|
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 |
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
| Constructor Detail |
|---|
public EarthEllipsoid(java.lang.String name,
int epsgId,
double a,
double f)
name - EPSG nameepsgId - EPSG ida - semimajor (equatorial) radius, in meters.f - inverse flattening.| Method Detail |
|---|
public static java.util.Collection 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 - _more_
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||