/** * {@inheritDoc} * * @return the map projection created from the given parameter values. */ @Override protected NormalizedProjection createProjection(final Parameters parameters) { return new org.apache.sis.referencing.operation.projection.Mollweide(this, parameters); } }
return Matrices.inverse(inverseDerivate(x, y, θp, sinφ)); } catch (NoninvertibleMatrixException e) { throw new ProjectionException(e);
/** * Creates a Mollweide projection from the given parameters. * The {@code method} argument can be the description of one of the following: * * <ul> * <li><cite>"Mollweide"</cite>, also known as * <cite>"Homalographic"</cite> or <cite>"Homolographic"</cite>.</li> * </ul> * * @param method description of the projection parameters. * @param parameters the parameter values of the projection to create. */ public Mollweide(final OperationMethod method, final Parameters parameters) { super(initializer(method, parameters)); final MatrixSIS normalize = context.getMatrix(ContextualParameters.MatrixRole.NORMALIZATION); final MatrixSIS denormalize = context.getMatrix(ContextualParameters.MatrixRole.DENORMALIZATION); normalize .convertAfter (0, 2*SQRT_2, null); denormalize.convertBefore(0, 1/PI, null); denormalize.convertBefore(1, SQRT_2, null); }