Class Axis
Object
Axis
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the abbreviation for the axis.Gets the direction of the axis.getName()Gets the name of the axis.getUnit()Gets the unit of measurement for the axis.voidsetAbbreviation(String abbreviation) Sets the abbreviation for the axis.voidsetDirection(String direction) Sets the direction of the axis.voidSets the name of the axis.voidSets the unit of measurement for the axis.
-
Constructor Details
-
Axis
public Axis()Creates a new Axis with default values.
-
-
Method Details
-
getName
Gets the name of the axis.- Returns:
- The axis name, e.g., "Geodetic latitude", "Easting"
-
setName
Sets the name of the axis.- Parameters:
name- The axis name
-
getAbbreviation
Gets the abbreviation for the axis.- Returns:
- The axis abbreviation, e.g., "Lat", "E"
-
setAbbreviation
Sets the abbreviation for the axis.- Parameters:
abbreviation- The axis abbreviation
-
getDirection
Gets the direction of the axis.- Returns:
- The axis direction, e.g., "north", "east", "up"
-
setDirection
Sets the direction of the axis.- Parameters:
direction- The axis direction
-
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
Sets the unit of measurement for the axis.- Parameters:
unit- The unit of measurement
-