Search in sources :

Example 26 with Parameters

use of org.apache.sis.parameter.Parameters in project sis by apache.

the class EllipsoidToCentricTransform method getParameterValues.

/**
 * Returns a copy of internal parameter values of this {@code EllipsoidToCentricTransform} transform.
 * The returned group contains parameter values for the number of dimensions and the eccentricity.
 *
 * <div class="note"><b>Note:</b>
 * this method is mostly for {@linkplain org.apache.sis.io.wkt.Convention#INTERNAL debugging purposes}
 * since the isolation of non-linear parameters in this class is highly implementation dependent.
 * Most GIS applications will instead be interested in the {@linkplain #getContextualParameters()
 * contextual parameters}.</div>
 *
 * @return a copy of the internal parameter values for this transform.
 */
@Debug
@Override
public ParameterValueGroup getParameterValues() {
    final Parameters pg = Parameters.castOrWrap(getParameterDescriptors().createValue());
    pg.getOrCreate(ECCENTRICITY).setValue(sqrt(eccentricitySquared));
    pg.parameter("target").setValue(getTargetType());
    pg.getOrCreate(DIMENSION).setValue(getSourceDimensions());
    return pg;
}
Also used : Parameters(org.apache.sis.parameter.Parameters) Debug(org.apache.sis.util.Debug)

Aggregations

Parameters (org.apache.sis.parameter.Parameters)26 MathTransform (org.opengis.referencing.operation.MathTransform)5 BursaWolfParameters (org.apache.sis.referencing.datum.BursaWolfParameters)4 MathTransformFactoryMock (org.apache.sis.referencing.operation.transform.MathTransformFactoryMock)4 NoninvertibleTransformException (org.opengis.referencing.operation.NoninvertibleTransformException)3 FactoryException (org.opengis.util.FactoryException)3 MatrixSIS (org.apache.sis.referencing.operation.matrix.MatrixSIS)2 ContextualParameters (org.apache.sis.referencing.operation.transform.ContextualParameters)2 StorageConnector (org.apache.sis.storage.StorageConnector)2 Debug (org.apache.sis.util.Debug)2 ParameterValueGroup (org.opengis.parameter.ParameterValueGroup)2 AffineTransform (java.awt.geom.AffineTransform)1 Path (java.nio.file.Path)1 StandardOpenOption (java.nio.file.StandardOpenOption)1 Angle (javax.measure.quantity.Angle)1 Length (javax.measure.quantity.Length)1 ParameterizedAffine (org.apache.sis.internal.referencing.j2d.ParameterizedAffine)1 Equirectangular (org.apache.sis.internal.referencing.provider.Equirectangular)1 LambertConformal1SP (org.apache.sis.internal.referencing.provider.LambertConformal1SP)1 PolarStereographicNorth (org.apache.sis.internal.referencing.provider.PolarStereographicNorth)1