Class GeoEllipse

  • All Implemented Interfaces:
    java.io.Serializable

    public final class GeoEllipse
    extends GeoObject
    Defines a GeoJSON ellipse by the center point, major and minor axes, and degrees of rotation with axis units and rotation units.
    Author:
    Charles W. Rapp
    See Also:
    Serialized Form
    • Field Detail

      • DEFAULT_AXIS_UNITS

        public static final java.lang.String DEFAULT_AXIS_UNITS
        Default units defining ellipse axis is kilometers ("km").
        See Also:
        Constant Field Values
      • DEFAULT_ROTATION_UNITS

        public static final java.lang.String DEFAULT_ROTATION_UNITS
        Default units defining ellipse rotation is ""decimal degrees"".
        See Also:
        Constant Field Values
      • center

        public final Position center
        Ellipse center coordinate.
      • majorAxis

        public final java.math.BigDecimal majorAxis
        Ellipse major axis.
      • minorAxis

        public final java.math.BigDecimal minorAxis
        Ellipse minor axis.
      • rotation

        public final java.math.BigDecimal rotation
        Ellipse degrees of rotation.
      • axisUnits

        public final java.lang.String axisUnits
        Major, minor axes are defined in this unit. Defaults to DEFAULT_AXIS_UNITS.
      • rotationUnits

        public final java.lang.String rotationUnits
        Rotation is defined in this unit. Defaults to DEFAULT_ROTATION_UNITS.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Description copied from class: GeoObject
        Returns text specifying GeoJSON type and attributes
        Overrides:
        toString in class GeoObject
        Returns:
        human-readable text containing GeoJSON type name and attributes.