@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(java.lang.String name,
int epsgId,
double a,
double b,
double invF)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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
|
getEccentricity, getEccentricitySquared, getEquatorRadius, getFlattening, getMajor, getMinor, getPoleRadius, isSpherical
public static final EarthEllipsoid Airy1830
public static final EarthEllipsoid IAG_GRS80
public static final EarthEllipsoid IAU
public static final EarthEllipsoid WGS84
public EarthEllipsoid(java.lang.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(java.lang.Object o)
public static java.util.Collection<EarthEllipsoid> getAll()
public int getEpsgId()
public java.lang.String getName()
public static EarthEllipsoid getType(int epsgId)
epsgId
- : epsg Id to matchpublic static EarthEllipsoid getType(java.lang.String name)
name
- : name to matchpublic int hashCode()