assert checkInverseTransform(lambda, phi, ptDst); if (ptDst != null) { ptDst.setLocation(lambda, phi);
assert checkTransform(x, y, ptDst); if (ptDst != null) { ptDst.setLocation(x, y);
/** * Creates a transform from the specified group of parameter values. * * @param parameters The group of parameter values. * @return The created math transform. * @throws ParameterNotFoundException if a required parameter was not found. */ public MathTransform createMathTransform(final ParameterValueGroup parameters) throws ParameterNotFoundException { return isSpherical(parameters) ? new Spherical(parameters) : new LambertAzimuthalEqualArea(parameters); } }
/** * Constructs a new map projection from the suplied parameters. * * @param parameters The parameter values in standard units. * @throws ParameterNotFoundException if a mandatory parameter is missing. */ protected Spherical(final ParameterValueGroup parameters) throws ParameterNotFoundException { super(parameters); ensureSpherical(); }