@Immutable public class EarthEllipsoid extends Earth
| Modifier and Type | Field and Description |
|---|---|
static EarthEllipsoid |
Airy1830
Airy 1830 ellipsoid from EPSG database version 6.14.
|
static EarthEllipsoid |
IAG_GRS80 |
static EarthEllipsoid |
IAU |
static EarthEllipsoid |
WGS84
Ellipsoid for WGS84 (edavis - correct 1/f as per EPSG database ver 6.14)
|
DEFAULT, WGS84_EARTH_RADIUS_KM, WGS84_EARTH_RADIUS_METERS| Constructor and Description |
|---|
EarthEllipsoid(String name,
int epsgId,
double a,
double b,
double invF)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
getEccentricity, getEccentricitySquared, getEquatorRadius, getFlattening, getMajor, getMinor, getPoleRadius, isSphericalpublic static final EarthEllipsoid Airy1830
public static final EarthEllipsoid IAG_GRS80
public static final EarthEllipsoid IAU
public static final EarthEllipsoid WGS84
public EarthEllipsoid(String name, int epsgId, double a, double b, double invF)
name - EPSG nameepsgId - EPSG ida - semimajor (equatorial) radius, in meters.b - semiminor (polar) radius, in meters.invF - inverse flattening.public boolean equals(Object o)
public static Collection<EarthEllipsoid> getAll()
public int getEpsgId()
public static EarthEllipsoid getType(int epsgId)
epsgId - : epsg Id to matchpublic static EarthEllipsoid getType(String name)
name - : name to matchpublic int hashCode()