Class ResidualGrid.Data

java.lang.Object
org.apache.sis.io.wkt.FormattableObject
org.apache.sis.referencing.operation.builder.ResidualGrid.Data
All Implemented Interfaces:
Function<int[],Number>, org.opengis.referencing.operation.Matrix
Enclosing class:
ResidualGrid

private final class ResidualGrid.Data extends FormattableObject implements org.opengis.referencing.operation.Matrix, Function<int[],Number>
View over one target dimension of the localization grid. Used for populating the ParameterDescriptorGroup that describes the MathTransform. Those parameters are themselves used for formatting Well Known Text. Current implementation can be used only when the number of grid dimensions is 2<C extends javax.measure.Quantity<C>,T extends javax.measure.Quantity<T>>. If a grid has more dimensions, then tensors would need to be used instead of matrices.

This implementation cannot be moved to the DatumShiftGrid parent class because this class assumes that the translation vectors are added to the source coordinates. This is not always true; for example France Geocentric interpolations add the translation to coordinates converted to geocentric coordinates.

Since:
1.0
Version:
1.1
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final double
    Coefficients from the denormalization matrix for the row corresponding to this dimension.
    private final double
    Coefficients from the denormalization matrix for the row corresponding to this dimension.
    private final double
    Coefficients from the denormalization matrix for the row corresponding to this dimension.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Data(int dim, org.opengis.referencing.operation.Matrix denormalization)
    Creates a new matrix for the specified dimension.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(int[] p)
     
    org.opengis.referencing.operation.Matrix
     
    protected String
    formatTo(Formatter formatter)
    Returns a multi-lines string representation.
    double
    getElement(int y, int x)
    Computes the matrix element in the given row and column.
    int
     
    int
     
    boolean
     
    void
    setElement(int y, int x, double v)
     
    Returns a short string representation on one line.

    Methods inherited from class org.apache.sis.io.wkt.FormattableObject

    print, toString, toWKT

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Field Details

    • c0

      private final double c0
      Coefficients from the denormalization matrix for the row corresponding to this dimension.
    • c1

      private final double c1
      Coefficients from the denormalization matrix for the row corresponding to this dimension.
    • c2

      private final double c2
      Coefficients from the denormalization matrix for the row corresponding to this dimension.
  • Constructor Details

    • Data

      Data(int dim, org.opengis.referencing.operation.Matrix denormalization)
      Creates a new matrix for the specified dimension.
  • Method Details

    • clone

      public org.opengis.referencing.operation.Matrix clone()
      Specified by:
      clone in interface org.opengis.referencing.operation.Matrix
      Overrides:
      clone in class Object
    • isIdentity

      public boolean isIdentity()
      Specified by:
      isIdentity in interface org.opengis.referencing.operation.Matrix
    • getNumCol

      public int getNumCol()
      Specified by:
      getNumCol in interface org.opengis.referencing.operation.Matrix
    • getNumRow

      public int getNumRow()
      Specified by:
      getNumRow in interface org.opengis.referencing.operation.Matrix
    • apply

      public Number apply(int[] p)
      Specified by:
      apply in interface Function<int[],Number>
    • setElement

      public void setElement(int y, int x, double v)
      Specified by:
      setElement in interface org.opengis.referencing.operation.Matrix
    • getElement

      public double getElement(int y, int x)
      Computes the matrix element in the given row and column.
      Specified by:
      getElement in interface org.opengis.referencing.operation.Matrix
    • toString

      public String toString()
      Returns a short string representation on one line. This appears as a single row in the table formatted for ParameterDescriptorGroup string representation.
      Overrides:
      toString in class FormattableObject
      Returns:
      the Well Known Text (WKT) or an alternative representation of this object.
    • formatTo

      protected String formatTo(Formatter formatter)
      Returns a multi-lines string representation. This appears in the Well Known Text (WKT) formatting of MathTransform.
      Specified by:
      formatTo in class FormattableObject
      Parameters:
      formatter - the formatter where to format the inner content of this WKT element.
      Returns:
      the CamelCase keyword for the WKT element, or null if unknown.
      See Also: