/** * 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. */ protected MathTransform createMathTransform(final ParameterValueGroup parameters) throws ParameterNotFoundException { // make sure we assume a spherical reference parameters .parameter("semi_minor") .setValue(parameters.parameter("semi_major").getValue()); return new Spherical(parameters); } }
protected MathTransform createMathTransform(final ParameterValueGroup parameters) throws ParameterNotFoundException { if (isSpherical(parameters)) { return new Spherical(parameters); } else { return new Ellipsoidal(parameters); } } }
/** Compares the specified object with this map projection for equality. */ @Override public boolean equals(final Object object) { if (object == this) { // Slight optimization return true; } if (super.equals(object)) { final Polyconic that = (Polyconic) object; return equals(this.ml0, that.ml0); } return false; }
/** {@inheritDoc} */ @Override public ParameterValueGroup getParameterValues() { final ParameterValueGroup values = super.getParameterValues(); final Collection<GeneralParameterDescriptor> expected = getParameterDescriptors().descriptors(); set(expected, AbstractProvider.STANDARD_PARALLEL_1, values, phi1); set(expected, AbstractProvider.STANDARD_PARALLEL_2, values, phi2); return values; }
/** {@inheritDoc} */ @Override public ParameterValueGroup getParameterValues() { final ParameterValueGroup values = super.getParameterValues(); final Collection<GeneralParameterDescriptor> expected = getParameterDescriptors().descriptors(); set(expected, Provider.STANDARD_PARALLEL_1, values, phi1); set(expected, Provider.STANDARD_PARALLEL_2, values, phi2); return values; }
/** {@inheritDoc} */ @Override public ParameterValueGroup getParameterValues() { final ParameterValueGroup values = super.getParameterValues(); return values; }
/** * 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); } }
/** Compares the specified object with this map projection for equality. */ @Override public boolean equals(final Object object) { if (object == this) { // Slight optimization return true; } if (super.equals(object)) { final EquidistantCylindrical that = (EquidistantCylindrical) object; return equals(this.standardParallel, that.standardParallel); } return false; }
/** Compares the specified object with this map projection for equality. */ @Override public boolean equals(final Object object) { if (object == this) { // Slight optimization return true; } if (super.equals(object)) { final Gnomonic that = (Gnomonic) object; return equals(this.latitudeOfCentre, that.latitudeOfCentre); } return false; }
/** Compares the specified object with this map projection for equality. */ @Override public boolean equals(final Object object) { if (object == this) { // Slight optimization return true; } if (super.equals(object)) { final WinkelTripel that = (WinkelTripel) object; return equals(this.cosphi1, that.cosphi1); } return false; }
/** Compares the specified object with this map projection for equality. */ @Override public boolean equals(final Object object) { if (object == this) { // Slight optimization return true; } if (super.equals(object)) { final Krovak that = (Krovak) object; return equals(azimuth, that.azimuth) && equals(pseudoStandardParallel, that.pseudoStandardParallel); } return false; } }
/** Compares the specified object with this map projection for equality. */ @Override public boolean equals(final Object object) { if (object == this) { // Slight optimization return true; } if (super.equals(object)) { final Mercator that = (Mercator) object; return equals(this.standardParallel, that.standardParallel); } return false; } }
/** * 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(); }
/** Returns a descriptor group for the specified parameters. */ static ParameterDescriptorGroup createDescriptorGroup( final ReferenceIdentifier[] identifiers) { return createDescriptorGroup( identifiers, new ParameterDescriptor[] { SEMI_MAJOR, SEMI_MINOR, CENTRAL_MERIDIAN, LATITUDE_OF_ORIGIN, SCALE_FACTOR, FALSE_EASTING, FALSE_NORTHING }); }
/** * 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. */ protected MathTransform createMathTransform(final ParameterValueGroup parameters) throws ParameterNotFoundException { return new Sinusoidal(parameters); } }
/** * 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 new Gnomonic(parameters); } }
/** * Constructs a spherical equatorial stereographic projection (USGS equations). * * @param parameters The group of parameter values. * @param descriptor The expected parameter descriptor. * @throws ParameterNotFoundException if a required parameter was not found. */ Spherical(final ParameterValueGroup parameters, final ParameterDescriptorGroup descriptor) throws ParameterNotFoundException { super(parameters, descriptor); ensureSpherical(); }
/** Creates the general case. To be overriden by the EPSG case only. */ MathTransform createMathTransform( final ParameterValueGroup parameters, final ParameterDescriptorGroup descriptor) throws ParameterNotFoundException { return new StereographicUSGS(parameters, descriptor); } }
/** * Must be overridden because {@link Provider} uses instances of {@link * ModifiedParameterDescriptor}. This hack was needed because the New Zeland map projection uses * particular default values for parameters like "False Easting", etc. */ @Override final boolean isExpectedParameter( final Collection<GeneralParameterDescriptor> expected, final ParameterDescriptor param) { return ModifiedParameterDescriptor.contains(expected, param); }
/** * 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. */ protected MathTransform createMathTransform(final ParameterValueGroup parameters) throws ParameterNotFoundException { return new WinkelTripel(ProjectionMode.Winkel, PARAMETERS, parameters); } }