Package ucar.unidata.geoloc
Class EarthEllipsoid
java.lang.Object
ucar.unidata.geoloc.Earth
ucar.unidata.geoloc.EarthEllipsoid
- All Implemented Interfaces:
Serializable
Type-safe enumeration of Earth Ellipsoids. Follows EPSG.
- See Also:
-
- http://www.epsg.org/
- "http://www.epsg.org/"
- Serialized Form
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EarthEllipsoidAiry 1830 ellipsoid from EPSG database version 6.14.static final EarthEllipsoidstatic final EarthEllipsoidstatic final EarthEllipsoidEllipsoid for WGS84 (edavis - correct 1/f as per EPSG database ver 6.14)Fields inherited from class ucar.unidata.geoloc.Earth
DEFAULT, WGS84_EARTH_RADIUS_KM, WGS84_EARTH_RADIUS_METERS -
Constructor Summary
ConstructorsConstructorDescriptionEarthEllipsoid(String name, int epsgId, double a, double b, double invF) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanObjects with same name are equal.static Collection<EarthEllipsoid>getAll()get a collection of all defined EarthEllipsoid objectsintEPSG idgetName()EPSG namestatic EarthEllipsoidgetType(int epsgId) Find the EarthEllipsoid that matches this EPSG Id.static EarthEllipsoidFind the EarthEllipsoid that matches this name.inthashCode()Override Object.hashCode() to be consistent with this equals.toString()Same as EPSG nameMethods inherited from class ucar.unidata.geoloc.Earth
getEccentricity, getEccentricitySquared, getEquatorRadius, getFlattening, getMajor, getMinor, getPoleRadius, getRadius, isSpherical
-
Field Details
-
WGS84
Ellipsoid for WGS84 (edavis - correct 1/f as per EPSG database ver 6.14) -
Airy1830
Airy 1830 ellipsoid from EPSG database version 6.14. -
IAU
-
IAG_GRS80
-
-
Constructor Details
-
EarthEllipsoid
Constructor.- Parameters:
name- EPSG nameepsgId- EPSG ida- semimajor (equatorial) radius, in meters.b- semiminor (polar) radius, in meters.invF- inverse flattening.
-
-
Method Details
-
getAll
get a collection of all defined EarthEllipsoid objects- Returns:
- all defined EarthEllipsoid objects
-
getType
Find the EarthEllipsoid that matches this name.- Parameters:
name- : name to match- Returns:
- EarthEllipsoid or null if no match.
-
getType
Find the EarthEllipsoid that matches this EPSG Id.- Parameters:
epsgId- : epsg Id to match- Returns:
- EarthEllipsoid or null if no match.
-
getName
EPSG name -
getEpsgId
public int getEpsgId()EPSG id- Returns:
- the EPSG id
-
toString
Same as EPSG name -
hashCode
public int hashCode()Override Object.hashCode() to be consistent with this equals. -
equals
Objects with same name are equal.
-