Class CoordinateSystem
Object
CoordinateSystem
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAxes()Gets the axes that define this coordinate system.getAxis()Alternative getter for axes to support v0.4 schema which uses "axis" instead of "axes".Gets the subtype of coordinate system (v0.4 schema).getType()Gets the type of coordinate system.voidSets the axes that define this coordinate system.voidAlternative setter for axes to support v0.4 schema which uses "axis" instead of "axes".voidsetSubtype(String subtype) Sets the subtype of coordinate system (v0.4 schema).voidSets the type of coordinate system.
-
Constructor Details
-
CoordinateSystem
public CoordinateSystem()Creates a new CoordinateSystem with default values.
-
-
Method Details
-
getType
Gets the type of coordinate system.- Returns:
- The coordinate system type, e.g., "ellipsoidal", "Cartesian", "vertical"
-
setType
Sets the type of coordinate system.- Parameters:
type- The coordinate system type
-
getSubtype
Gets the subtype of coordinate system (v0.4 schema).- Returns:
- The coordinate system subtype
-
setSubtype
Sets the subtype of coordinate system (v0.4 schema).- Parameters:
subtype- The coordinate system subtype
-
getAxes
Gets the axes that define this coordinate system.- Returns:
- The list of coordinate system axes
-
getAxis
Alternative getter for axes to support v0.4 schema which uses "axis" instead of "axes".- Returns:
- The list of coordinate system axes
-
setAxes
Sets the axes that define this coordinate system.- Parameters:
axes- The list of coordinate system axes
-
setAxis
Alternative setter for axes to support v0.4 schema which uses "axis" instead of "axes".- Parameters:
axes- The list of coordinate system axes
-