All Implemented Interfaces:
Identifier, CoordinateReferenceSystem, SingleCRS, CoordinateSystem, IdentifiedObject, ReferenceIdentifier, ReferenceSystem
Direct Known Subclasses:
SimpleCRS.Geographic, SimpleCRS.Temporal, SimpleCRS.Vertical

public abstract class SimpleCRS extends SimpleIdentifiedObject implements SingleCRS, CoordinateSystem
A CoordinateReferenceSystem abstract base class. This class does not make distinction between Coordinate System and Coordinate Reference System, so we implement the two interfaces by the same class.
Since:
3.1
  • Field Details

  • Constructor Details

    • SimpleCRS

      public SimpleCRS(Citation authority, String name, CoordinateSystemAxis... axes)
      Creates a new CRS for the given name, datum and axes.
      Parameters:
      authority - organization responsible for definition of the CRS, or null.
      name - the name of the new CRS.
      axes - the axes to be returned by getAxis(int). The length of this array is the coordinate system dimension.
  • Method Details

    • getCoordinateSystem

      public CoordinateSystem getCoordinateSystem()
      Returns the coordinate system, which is represented directly by this implementation class since it does not distinguish CS and CRS.
      Specified by:
      getCoordinateSystem in interface CoordinateReferenceSystem
      Specified by:
      getCoordinateSystem in interface SingleCRS
      Returns:
      the coordinate system.
    • getDimension

      public final int getDimension()
      Returns the dimension of the coordinate system.
      Specified by:
      getDimension in interface CoordinateSystem
      Returns:
      the dimension of the coordinate system.
    • getAxis

      public final CoordinateSystemAxis getAxis(int dimension) throws IndexOutOfBoundsException
      Returns the coordinate axis at the given dimension.
      Specified by:
      getAxis in interface CoordinateSystem
      Parameters:
      dimension - the zero based index of axis.
      Returns:
      the axis at the specified dimension.
      Throws:
      IndexOutOfBoundsException - if dimension is out of bounds.
    • equals

      public boolean equals(Object object)
      Compares this CRS with the given object for equality.
      Overrides:
      equals in class SimpleIdentifiedObject
      Parameters:
      object - the object to compare with this SimpleCRS.
      Returns:
      true if the given object is equal to this object.