Class EarthEllipsoid


  • @Immutable
    public class EarthEllipsoid
    extends Earth
    Type-safe enumeration of Earth Ellipsoids. Follows EPSG.
    See Also:
    http://www.epsg.org/, "http://www.epsg.org/"
    • Field Detail

      • WGS84

        public static final EarthEllipsoid WGS84
        Ellipsoid for WGS84 (edavis - correct 1/f as per EPSG database ver 6.14)
      • Airy1830

        public static final EarthEllipsoid Airy1830
        Airy 1830 ellipsoid from EPSG database version 6.14.
    • Constructor Detail

      • EarthEllipsoid

        public EarthEllipsoid​(String name,
                              int epsgId,
                              double a,
                              double b,
                              double invF)
        Constructor.
        Parameters:
        name - EPSG name
        epsgId - EPSG id
        a - semimajor (equatorial) radius, in meters.
        b - semiminor (polar) radius, in meters.
        invF - inverse flattening.
    • Method Detail

      • getAll

        public static Collection<EarthEllipsoid> getAll()
        get a collection of all defined EarthEllipsoid objects
        Returns:
        all defined EarthEllipsoid objects
      • getType

        @Nullable
        public static EarthEllipsoid getType​(String name)
        Find the EarthEllipsoid that matches this name.
        Parameters:
        name - : name to match
        Returns:
        EarthEllipsoid or null if no match.
      • getType

        @Nullable
        public static EarthEllipsoid getType​(int epsgId)
        Find the EarthEllipsoid that matches this EPSG Id.
        Parameters:
        epsgId - : epsg Id to match
        Returns:
        EarthEllipsoid or null if no match.
      • getEpsgId

        public int getEpsgId()
        EPSG id
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Earth
      • equals

        public boolean equals​(Object o)
        EarthEllipsoid with same name are equal
        Overrides:
        equals in class Earth