Class SimpleAxis

    • Field Detail

      • LATITUDE

        public static final CoordinateSystemAxis LATITUDE
        The geodetic latitude axis. Values are increasing toward East, in decimal degrees.
      • LONGITUDE

        public static final CoordinateSystemAxis LONGITUDE
        The geodetic longitude axis. Values are increasing toward North, in decimal degrees.
      • abbreviation

        protected final char abbreviation
        The abbreviation used for this coordinate system axes. This abbreviation is also used to identify the ordinates in coordinate tuple. Examples are "X" and "Y".
        See Also:
        getAbbreviation()
      • unit

        protected final Unit<?> unit
        The unit of measure used for this coordinate system axis.
        See Also:
        getUnit()
    • Constructor Detail

      • SimpleAxis

        public SimpleAxis​(Citation authority,
                          String name,
                          char abbreviation)
                   throws IllegalArgumentException
        Creates a new axis for the given authority, name and abbreviation. The axis direction and units are inferred from the abbreviation using the table documented in the class javadoc.
        Parameters:
        authority - organization responsible for definition of the name, or null.
        name - the name of the new axis.
        abbreviation - the abbreviation used for this coordinate system axes.
        Throws:
        IllegalArgumentException - if the abbreviation is not one of the documented ones.
      • SimpleAxis

        public SimpleAxis​(Citation authority,
                          String name,
                          char abbreviation,
                          AxisDirection direction,
                          Unit<?> unit)
        Creates a new axis for the given authority, name, units and direction. The following abbreviation are handled specially by this class:
        • λ for geodetic longitude
        • φ for geodetic latitude
        • Ω for spherical longitude
        • Θ for spherical latitude
        • r for geocentric radius
        Parameters:
        authority - organization responsible for definition of the name, or null.
        name - the name of the new axis.
        abbreviation - the abbreviation used for this coordinate system axes.
        direction - direction of this coordinate system axis.
        unit - the unit of measure used for this coordinate system axis.
    • Method Detail

      • getAbbreviation

        public String getAbbreviation()
        The abbreviation used for this coordinate system axes. This abbreviation is also used to identify the ordinates in coordinate tuple. Examples are "X" and "Y".
        Specified by:
        getAbbreviation in interface CoordinateSystemAxis
      • getUnit

        public Unit<?> getUnit()
        The unit of measure used for this coordinate system axis.
        Specified by:
        getUnit in interface CoordinateSystemAxis
      • equals

        public boolean equals​(Object object)
        Compares this axis with the given object for equality.
        Overrides:
        equals in class SimpleIdentifiedObject
        Parameters:
        object - the object to compare with this SimpleCRS.
        Returns:
        true if the given object is equals to this object.