Class UnitAdapter.ForCS

java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,javax.measure.Unit<?>>
org.apache.sis.internal.jaxb.gco.UnitAdapter
org.apache.sis.internal.jaxb.gco.UnitAdapter.ForCS
Enclosing class:
UnitAdapter

public static final class UnitAdapter.ForCS extends UnitAdapter
A variant of UnitAdapter which marshal units as a URN for Coordinate System (CS) axes. Example: "urn:ogc:def:uom:EPSG::9001". The difference between coordinate system axis and other uses (prime meridian, etc.) is in the choice of EPSG code for the degrees. See Units.getEpsgCode(Unit, boolean) for more information.
  • Constructor Details

    • ForCS

      public ForCS()
  • Method Details

    • marshal

      public String marshal(javax.measure.Unit<?> value)
      Description copied from class: UnitAdapter
      Returns the symbol of the given unit.
      Overrides:
      marshal in class UnitAdapter
      Parameters:
      value - the unit.
      Returns:
      the unit symbol.