Class MatrixParametersAlphaNum

All Implemented Interfaces:
Serializable

final class MatrixParametersAlphaNum extends MatrixParameters
A special case of MatrixParameters which create EPSG:9624 parameter names and identifiers. The parameters created by this class are close, but not identical, to the EPSG:9624 definition of "A0", "A1", "A2", "B0", "B1" and "B2". The differences are:
  • EPSG:9624 is only for matrices of size 3×3 and consequently does not have "num_row" and "num_col" parameters. This class extends the definition to matrices of arbitrary size and consequently accepts "num_row" and "num_col" as optional parameters.
  • EPSG:9624 is restricted to affine matrices and consequently define parameters only for the two first rows. This class accepts also parameters for the last row (namely "C0", "C1" and "C2" in a 3×3 matrices).
Because of the above-cited extensions, this class is not named like "EPSG matrix parameters", but rater like "Alphanumeric matrix parameters"
Since:
0.6
Version:
0.6
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For cross-version compatibility.
      See Also:
  • Constructor Details

    • MatrixParametersAlphaNum

      MatrixParametersAlphaNum(org.opengis.parameter.ParameterDescriptor<Integer> numRow, org.opengis.parameter.ParameterDescriptor<Integer> numCol)
      Constructs a descriptors provider.
      Parameters:
      numRow - the parameter for the number of rows.
      numCol - the parameter for the number of columns.
  • Method Details

    • indicesToName

      protected String indicesToName(int[] indices) throws IllegalArgumentException
      Returns the parameter descriptor name of a matrix element at the given indices. Overridden as a matter of principle, but not used directly by this implementation.
      Overrides:
      indicesToName in class TensorParameters<Double>
      Parameters:
      indices - the indices of the tensor element for which to create a parameter name.
      Returns:
      the parameter descriptor name for the tensor element at the given indices.
      Throws:
      IllegalArgumentException - if the given array does not have the expected length or have illegal value.
    • createElementDescriptor

      protected org.opengis.parameter.ParameterDescriptor<Double> createElementDescriptor(int[] indices) throws IllegalArgumentException
      Creates a new parameter descriptor for a matrix element at the given indices. This method creates both the OGC name (e.g. "elt_1_2") and the EPSG name (e.g. "B2"), together with the EPSG identifier (e.g. "EPSG:8641") if it exists. See Affine for a table summarizing the parameter names and identifiers.
      Overrides:
      createElementDescriptor in class MatrixParameters
      Parameters:
      indices - the indices of the tensor element for which to create a parameter.
      Returns:
      the parameter descriptor for the given tensor element.
      Throws:
      IllegalArgumentException - if the given array does not have the expected length or have illegal value.
      See Also:
    • readResolve

      Object readResolve() throws ObjectStreamException
      On deserialization, replaces the deserialized instance by the unique instance.
      Overrides:
      readResolve in class MatrixParameters
      Throws:
      ObjectStreamException