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;
}
Aggregations