Class AxisNames

java.lang.Object
org.apache.sis.internal.metadata.AxisNames

public final class AxisNames extends Object
Constants for axis names specified by ISO 19111 and ISO 19162. Contains also some extensions used in astronomy.
Since:
0.6
Version:
1.1
  • Field Details

    • LONGITUDE

      public static final String LONGITUDE
      The ISO 19162 "Longitude" name.
      See Also:
    • LATITUDE

      public static final String LATITUDE
      The ISO 19162 "Latitude" name.
      See Also:
    • GEODETIC_LONGITUDE

      public static final String GEODETIC_LONGITUDE
      The ISO 19111 "geodetic longitude" name. Abbreviation is "λ" (lambda).
      See Also:
    • GEODETIC_LATITUDE

      public static final String GEODETIC_LATITUDE
      The ISO 19111 "geodetic latitude" name. Abbreviation is "φ" (phi).
      See Also:
    • PLANETODETIC_LONGITUDE

      public static final String PLANETODETIC_LONGITUDE
      The "planetodetic longitude" name used in astronomy.
      See Also:
    • PLANETODETIC_LATITUDE

      public static final String PLANETODETIC_LATITUDE
      The "planetodetic latitude" name used in astronomy.
      See Also:
    • SPHERICAL_LONGITUDE

      public static final String SPHERICAL_LONGITUDE
      The ISO 19111 "spherical longitude" name, also called "azimuthal angle". Abbreviation used by SIS is "θ" (theta) for consistency with ISO 19111 and ISO 19162 Axis name and abbreviation section, but some other conventions use φ or Ω instead. Direction in the EPSG database is "East", but "counterClockwise" may also be used.

      Axis name "Geocentric longitude" can also be used. In astronomy, "Planetocentric longitude" is sometimes used.

      See Also:
    • SPHERICAL_LATITUDE

      public static final String SPHERICAL_LATITUDE
      The ISO 19111 "spherical latitude" name, also called "polar (zenith) angle". Abbreviation used by SIS is "Ω" (omega) for consistency with ISO 19111 Axis name and abbreviation section, but some other conventions use θ, Ω or Ψ instead. Direction in the EPSG database is "North", but the "Up" direction may also be used with a similar axis named "elevation".

      Axis name "Geocentric latitude" can also be used. In astronomy, "Planetocentric latitude" is sometimes used.

      See Also:
    • ELLIPSOIDAL_HEIGHT

      public static final String ELLIPSOIDAL_HEIGHT
      The ISO 19111 "ellipsoidal height" name. Abbreviation is lower case "h".
      See Also:
    • DEPTH

      public static final String DEPTH
      The ISO 19111 "depth" name.
      See Also:
    • GEOCENTRIC_X

      public static final String GEOCENTRIC_X
      The ISO 19111 "Geocentric X" name. Abbreviation is upper case "X".
      See Also:
    • GEOCENTRIC_Y

      public static final String GEOCENTRIC_Y
      The ISO 19111 "Geocentric Y" name. Abbreviation is upper case "Y".
      See Also:
    • GEOCENTRIC_Z

      public static final String GEOCENTRIC_Z
      The ISO 19111 "Geocentric Z" name. Abbreviation is upper case "Z".
      See Also:
    • GEOCENTRIC_RADIUS

      public static final String GEOCENTRIC_RADIUS
      The ISO 19111 "geocentric radius" name. Abbreviation is lower case "r" for consistency with ISO 19111.
      Note:Lower case "r" is also used for non-geocentric radius or axes named "distance" with "awayFrom" direction.
      See Also:
    • EASTING

      public static final String EASTING
      The ISO 19111 "easting" name. Abbreviation is upper case "E".
      See Also:
    • WESTING

      public static final String WESTING
      The ISO 19111 "westing" name. Abbreviation is upper case "W".
      See Also:
    • NORTHING

      public static final String NORTHING
      The ISO 19111 "northing" name. Abbreviation is upper case "N".
      See Also:
    • SOUTHING

      public static final String SOUTHING
      The ISO 19111 "southing" name. Abbreviation is upper case "S".
      See Also:
    • TIME

      public static final String TIME
      A ISO 19162 frequently used name.
      See Also:
    • VALUES

      private static final Map<String,String> VALUES
      The map of all of the above values, used for fixing the case. Shall not be modified after construction.
  • Constructor Details

    • AxisNames

      private AxisNames()
      Do not allow instantiation of this class.
  • Method Details

    • toUpperCase

      private static String toUpperCase(String name, StringBuilder buffer)
      Returns the given axis name in upper case without punctuation characters.
      Parameters:
      name - the axis name to return in upper-case.
      buffer - a temporary buffer to use. Must be initially empty.
      Returns:
      the given name converted to upper-case.
    • toCamelCase

      public static String toCamelCase(String name)
      Returns the given name in camel case if it is one of the know names. This method canonicalizes also the use of '_', '-' and ' '.
      Rational: Axis names are not really free text. They are specified by ISO 19111 and ISO 19162. SIS does not put restriction on axis names, but we nevertheless try to use a unique name when we recognize it.
      Parameters:
      name - the name in any case.
      Returns:
      the given name in camel case.