Class CoordinateSystem


  • public class CoordinateSystem
    extends Object
    Represents a coordinate system definition in PROJJSON.

    A coordinate system defines the axes, their order, orientation, and units for a coordinate reference system. Common types include ellipsoidal (for geographic CRS), Cartesian (for projected CRS), and vertical.

    • Constructor Detail

      • CoordinateSystem

        public CoordinateSystem()
        Creates a new CoordinateSystem with default values.
    • Method Detail

      • getType

        public String getType()
        Gets the type of coordinate system.
        Returns:
        The coordinate system type, e.g., "ellipsoidal", "Cartesian", "vertical"
      • setType

        public void setType​(String type)
        Sets the type of coordinate system.
        Parameters:
        type - The coordinate system type
      • getSubtype

        public String getSubtype()
        Gets the subtype of coordinate system (v0.4 schema).
        Returns:
        The coordinate system subtype
      • setSubtype

        public void setSubtype​(String subtype)
        Sets the subtype of coordinate system (v0.4 schema).
        Parameters:
        subtype - The coordinate system subtype
      • getAxes

        public List<Axis> getAxes()
        Gets the axes that define this coordinate system.
        Returns:
        The list of coordinate system axes
      • getAxis

        public List<Axis> getAxis()
        Alternative getter for axes to support v0.4 schema which uses "axis" instead of "axes".
        Returns:
        The list of coordinate system axes
      • setAxes

        public void setAxes​(List<Axis> axes)
        Sets the axes that define this coordinate system.
        Parameters:
        axes - The list of coordinate system axes
      • setAxis

        public void setAxis​(List<Axis> axes)
        Alternative setter for axes to support v0.4 schema which uses "axis" instead of "axes".
        Parameters:
        axes - The list of coordinate system axes