Class ResidualGrid.Data
java.lang.Object
org.apache.sis.io.wkt.FormattableObject
org.apache.sis.referencing.operation.builder.ResidualGrid.Data
- 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.
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
FieldsModifier and TypeFieldDescriptionprivate final doubleCoefficients from the denormalization matrix for the row corresponding to this dimension.private final doubleCoefficients from the denormalization matrix for the row corresponding to this dimension.private final doubleCoefficients from the denormalization matrix for the row corresponding to this dimension. -
Constructor Summary
ConstructorsConstructorDescriptionData(int dim, org.opengis.referencing.operation.Matrix denormalization) Creates a new matrix for the specified dimension. -
Method Summary
Modifier and TypeMethodDescriptionapply(int[] p) org.opengis.referencing.operation.Matrixclone()protected StringReturns a multi-lines string representation.doublegetElement(int y, int x) Computes the matrix element in the given row and column.intintbooleanvoidsetElement(int y, int x, double v) toString()Returns a short string representation on one line.Methods inherited from class org.apache.sis.io.wkt.FormattableObject
print, toString, toWKT
-
Field Details
-
c0
private final double c0Coefficients from the denormalization matrix for the row corresponding to this dimension. -
c1
private final double c1Coefficients from the denormalization matrix for the row corresponding to this dimension. -
c2
private final double c2Coefficients 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() -
isIdentity
public boolean isIdentity()- Specified by:
isIdentityin interfaceorg.opengis.referencing.operation.Matrix
-
getNumCol
public int getNumCol()- Specified by:
getNumColin interfaceorg.opengis.referencing.operation.Matrix
-
getNumRow
public int getNumRow()- Specified by:
getNumRowin interfaceorg.opengis.referencing.operation.Matrix
-
apply
-
setElement
public void setElement(int y, int x, double v) - Specified by:
setElementin interfaceorg.opengis.referencing.operation.Matrix
-
getElement
public double getElement(int y, int x) Computes the matrix element in the given row and column.- Specified by:
getElementin interfaceorg.opengis.referencing.operation.Matrix
-
toString
Returns a short string representation on one line. This appears as a single row in the table formatted forParameterDescriptorGroupstring representation.- Overrides:
toStringin classFormattableObject- Returns:
- the Well Known Text (WKT) or an alternative representation of this object.
-
formatTo
Returns a multi-lines string representation. This appears in the Well Known Text (WKT) formatting ofMathTransform.- Specified by:
formatToin classFormattableObject- Parameters:
formatter- the formatter where to format the inner content of this WKT element.- Returns:
- the CamelCase keyword for the WKT element, or
nullif unknown. - See Also:
-