/** * Create an Azimuthal Equidistant projection. * * @return {@link Spherical} or {@link Ellipsoidal} depending on the parameters. * @see * org.geotools.referencing.operation.MathTransformProvider#createMathTransform(org.opengis.parameter.ParameterValueGroup) */ @Override protected MathTransform createMathTransform(ParameterValueGroup parameters) throws InvalidParameterNameException, ParameterNotFoundException, InvalidParameterValueException, FactoryException { if (isSpherical(parameters)) { return new Spherical(parameters); } else { return new Ellipsoidal(parameters); } } }
/** * Constructor. * * @param parameters the parameters that define this projection * @throws ParameterNotFoundException */ protected Spherical(ParameterValueGroup parameters) throws ParameterNotFoundException { super(parameters); ensureSpherical(); }