Object
Axis

public class Axis extends Object
Represents a coordinate system axis in PROJJSON.

An axis defines a single dimension in a coordinate system, including its name, abbreviation, direction, and the unit of measurement used for values along the axis.

  • Constructor Details

    • Axis

      public Axis()
      Creates a new Axis with default values.
  • Method Details

    • getName

      public String getName()
      Gets the name of the axis.
      Returns:
      The axis name, e.g., "Geodetic latitude", "Easting"
    • setName

      public void setName(String name)
      Sets the name of the axis.
      Parameters:
      name - The axis name
    • getAbbreviation

      public String getAbbreviation()
      Gets the abbreviation for the axis.
      Returns:
      The axis abbreviation, e.g., "Lat", "E"
    • setAbbreviation

      public void setAbbreviation(String abbreviation)
      Sets the abbreviation for the axis.
      Parameters:
      abbreviation - The axis abbreviation
    • getDirection

      public String getDirection()
      Gets the direction of the axis.
      Returns:
      The axis direction, e.g., "north", "east", "up"
    • setDirection

      public void setDirection(String direction)
      Sets the direction of the axis.
      Parameters:
      direction - The axis direction
    • getUnit

      public Object getUnit()
      Gets the unit of measurement for the axis.

      This can be either a string (for common units like "degree" or "metre") or a Unit object with detailed unit information.

      Returns:
      The unit of measurement
    • setUnit

      public void setUnit(Object unit)
      Sets the unit of measurement for the axis.
      Parameters:
      unit - The unit of measurement