Class ConvertedCategory

java.lang.Object
org.apache.sis.coverage.Category
org.apache.sis.coverage.ConvertedCategory
All Implemented Interfaces:
Serializable

final class ConvertedCategory extends Category
A category of "real values" range. Sample values in this category are equal to real values. By definition, the getTransferFunction() method for this class returns the identity transform, or an empty optional if this category is a qualitative one.
Since:
1.0
Version:
1.1
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serial number for inter-operability with different versions.
      See Also:
  • Constructor Details

    • ConvertedCategory

      ConvertedCategory(Category original, org.opengis.referencing.operation.MathTransform1D toSamples, boolean isQuantitative, javax.measure.Unit<?> units) throws org.opengis.referencing.operation.TransformException
      Creates a category storing the inverse of the "sample to real values" transfer function. The Category.toConverse of this category will convert real value in specified units to the sample (packed) value.
      Parameters:
      original - the category storing the conversion from sample to real value.
      toSamples - the "real to sample values" conversion, as the inverse of original.transferFunction. For qualitative category, this function is a constant mapping NaN to the original sample value.
      isQuantitative - true if we are construction a quantitative category, or false for qualitative.
      units - the units of measurement, or null if not applicable. This is the source units before conversion by toSamples.
      Throws:
      org.opengis.referencing.operation.TransformException
  • Method Details