Class DefaultParametricCRS

All Implemented Interfaces:
Serializable, Formattable, Deprecable, Lenient­Comparable, Printable, Coordinate­Reference­System, Single­CRS, Identified­Object, Reference­System

public class DefaultParametricCRS extends AbstractCRS
A 1-dimensional coordinate reference system which uses parameter values or functions. Parametric CRS can be used for physical properties or functions that vary monotonically with height. A typical example is the pressure in meteorological applications.

Used with datum type: Parametric.
Used with coordinate system type: Parametric.

Immutability and thread safety

This class is immutable and thus thread-safe if the property values (not necessarily the map itself), the coordinate system and the datum instances given to the constructor are also immutable. Unless otherwise noted in the javadoc, this condition holds if all components were created using only SIS factories and static constants.
Since:
0.7
See Also:
  • Constructor Details

  • Method Details

    • getDatum

      public DefaultParametricDatum getDatum()
      Returns the reference surface used as the origin of this CRS. This property may be null if this CRS is related to an object identified only by a datum ensemble.
      Specified by:
      get­Datum in interface Single­CRS
      Returns:
      the parametric datum, or null if this CRS is related to an object identified only by a datum ensemble.
    • getDatumEnsemble

      public DefaultDatumEnsemble<DefaultParametricDatum> getDatumEnsemble()
      Returns a collection of datums which, for low accuracy requirements, may be considered to be insignificantly different from each other. This property may be null if this CRS is related to an object identified only by a single datum.
      Warning: in a future SIS version, the return type may be changed to the org​.opengis​.referencing​.datum​.Datum­Ensemble interface. This change is pending GeoAPI revision.
      Returns:
      the datum ensemble, or null if this CRS is related to an object identified only by a single datum.
      Since:
      1.5
    • getCoordinateSystem

      public DefaultParametricCS getCoordinateSystem()
      Returns the coordinate system.
      Specified by:
      get­Coordinate­System in interface Coordinate­Reference­System
      Specified by:
      get­Coordinate­System in interface Single­CRS
      Overrides:
      get­Coordinate­System in class Abstract­CRS
      Returns:
      the coordinate system.
    • forConvention

      public DefaultParametricCRS forConvention(AxesConvention convention)
      Returns a CRS equivalent to this one but with axes rearranged according the given convention. If this CRS is already compatible with the given convention, then this method returns this.
      Overrides:
      for­Convention in class Abstract­CRS
      Parameters:
      convention - the axes convention for which a coordinate reference system is desired.
      Returns:
      a coordinate reference system compatible with the given convention (may be this).
      See Also:
    • formatTo

      protected String formatTo(Formatter formatter)
      Formats this CRS as a Well Known Text Parametric­CRS[…] element.

      Compatibility note

      Parametric­CRS is defined in the WKT 2 specification only.
      Overrides:
      format­To in class Abstract­CRS
      Parameters:
      formatter - the formatter where to format the inner content of this WKT element.
      Returns:
      "Parametric­CRS".
      See Also:
    • getInterface

      public Class<? extends SingleCRS> getInterface()
      Returns the GeoAPI interface implemented by this class. The default implementation returns Single­CRS​.class. Subclasses implementing a more specific GeoAPI interface shall override this method.
      Overrides:
      get­Interface in class Abstract­CRS
      Returns:
      the coordinate reference system interface implemented by this class.