/* * Geotoolkit.org - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2006-2012, Open Source Geospatial Foundation (OSGeo) * (C) 2009-2012, Geomatys * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; * version 2.1 of the License. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ package org.geotoolkit.referencing.operation.provider; import org.opengis.parameter.ParameterValueGroup; import org.opengis.parameter.ParameterDescriptor; import org.opengis.parameter.ParameterDescriptorGroup; import org.opengis.referencing.operation.MathTransform2D; import org.opengis.referencing.operation.MathTransformFactory; import org.opengis.metadata.Identifier; import org.apache.sis.referencing.NamedIdentifier; import org.geotoolkit.metadata.Citations; import org.apache.sis.internal.referencing.provider.Mercator2SP; /** * The provider for "<cite>Lambert Azimuthal Equal Area</cite>" projection (EPSG:9820, EPSG:1027, * <del>EPSG:9821</del>). * * {@note EPSG defines two codes for this projection, 1027 being the spherical case and 9820 the * ellipsoidal case. However the formulas are the same in both cases. Consequently they are * implemented in Geotk by the same class.} * * {@note EPSG:9820 and 1027 are the current codes, while EPSG:9821 is a deprecated code. The new * and deprecated definitions differ only by their names. In the Geotk implementation, both * current and legacy definitions are known, but the legacy names are marked as deprecated.} * * The math transform implementations instantiated by this provider may be any of the following classes: * <p> * <ul> * <li>{@link org.geotoolkit.referencing.operation.projection.LambertAzimuthalEqualArea}</li> * </ul> * * <!-- PARAMETERS LambertAzimuthalEqualArea --> * <p>The following table summarizes the parameters recognized by this provider. * For a more detailed parameter list, see the {@link #PARAMETERS} constant.</p> * <blockquote><p><b>Operation name:</b> {@code Lambert_Azimuthal_Equal_Area} * <br><b>Area of use:</b> <font size="-1">(union of CRS domains of validity in EPSG database)</font></p> * <blockquote><table class="compact"> * <tr><td><b>in latitudes:</b></td><td class="onright">90°00.0′S</td><td>to</td><td class="onright">90°00.0′N</td></tr> * <tr><td><b>in longitudes:</b></td><td class="onright">180°00.0′W</td><td>to</td><td class="onright">180°00.0′E</td></tr> * </table></blockquote> * <table class="geotk"> * <tr><th>Parameter name</th><th>Default value</th></tr> * <tr><td>{@code semi_major}</td><td></td></tr> * <tr><td>{@code semi_minor}</td><td></td></tr> * <tr><td>{@code latitude_of_center}</td><td>0°</td></tr> * <tr><td>{@code longitude_of_center}</td><td>0°</td></tr> * <tr><td>{@code false_easting}</td><td>0 metres</td></tr> * <tr><td>{@code false_northing}</td><td>0 metres</td></tr> * </table></blockquote> * <!-- END OF PARAMETERS --> * * @author Beate Stollberg * @author Martin Desruisseaux (Geomatys, Geomatys) * @version 3.20 * * @see <A HREF="http://www.remotesensing.org/geotiff/proj_list/lambert_azimuthal_equal_area.html">Lambert Azimuthal Equal Area on RemoteSensing.org</A> * @see <a href="{@docRoot}/../modules/referencing/operation-parameters.html">Geotk coordinate operations matrix</a> * * @since 2.4 * @module */ public class LambertAzimuthalEqualArea extends MapProjection { /** * For cross-version compatibility. */ private static final long serialVersionUID = 3877793025552244132L; /** * The operation parameter descriptor for the {@linkplain * org.geotoolkit.referencing.operation.projection.UnitaryProjection.Parameters#centralMeridian * central meridian} parameter value. * * This parameter is <a href="package-summary.html#Obligation">mandatory</a>. * Valid values range is [-180 … 180]° and default value is 0°. * * @deprecated Invoke <code>{@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String) * descriptor(String)}</code> instead. */ @Deprecated public static final ParameterDescriptor<Double> LONGITUDE_OF_CENTRE = UniversalParameters.CENTRAL_MERIDIAN.select(null, null, null, new String[] { "Spherical longitude of origin"}, // EPSG (deprecated - was used by EPSG:9821 only) "Longitude of natural origin", // EPSG "longitude_of_center", // OGC "Central_Meridian", // ESRI "longitude_of_projection_origin", // NetCDF "ProjCenterLong"); // GeoTIFF /** * The operation parameter descriptor for the {@linkplain * org.geotoolkit.referencing.operation.projection.UnitaryProjection.Parameters#latitudeOfOrigin * latitude of origin} parameter value. * * This parameter is <a href="package-summary.html#Obligation">mandatory</a>. * Valid values range is [-90 … 90]° and default value is 0°. * * @deprecated Invoke <code>{@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String) * descriptor(String)}</code> instead. */ @Deprecated public static final ParameterDescriptor<Double> LATITUDE_OF_CENTRE = UniversalParameters.LATITUDE_OF_ORIGIN.select(null, null, null, new String[] { "Spherical latitude of origin"}, // EPSG (deprecated - was used by EPSG:9821 only) "Latitude of natural origin", // EPSG "latitude_of_center", // OGC "Latitude_Of_Origin", // ESRI "ProjCenterLat"); // GeoTIFF /** * The operation parameter descriptor for the {@linkplain * org.geotoolkit.referencing.operation.projection.UnitaryProjection.Parameters#falseEasting * false easting} parameter value. * * This parameter is <a href="package-summary.html#Obligation">mandatory</a>. * Valid values range is unrestricted and default value is 0 metre. * * @deprecated Invoke <code>{@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String) * descriptor(String)}</code> instead. */ @Deprecated public static final ParameterDescriptor<Double> FALSE_EASTING = Mercator2SP.FALSE_EASTING; /** * The operation parameter descriptor for the {@linkplain * org.geotoolkit.referencing.operation.projection.UnitaryProjection.Parameters#falseNorthing * false northing} parameter value. * * This parameter is <a href="package-summary.html#Obligation">mandatory</a>. * Valid values range is unrestricted and default value is 0 metre. * * @deprecated Invoke <code>{@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String) * descriptor(String)}</code> instead. */ @Deprecated public static final ParameterDescriptor<Double> FALSE_NORTHING = Mercator2SP.FALSE_NORTHING; /** * The group of all parameters expected by this coordinate operation. * The following table lists the operation names and the parameters recognized by Geotk: * <p> * <!-- GENERATED PARAMETERS - inserted by ProjectionParametersJavadoc --> * <table class="geotk" border="1"> * <tr><th colspan="2"> * <table class="compact"> * <tr><td><b>Name:</b></td><td class="onright"><code>OGC</code>:</td><td class="onleft"><code>Lambert_Azimuthal_Equal_Area</code></td></tr> * <tr><td><b>Alias:</b></td><td class="onright"><code>EPSG</code>:</td><td class="onleft"><code>Lambert Azimuthal Equal Area</code></td></tr> * <tr><td></td><td class="onright"><code>EPSG</code>:</td><td class="onleft"><code>Lambert Azimuthal Equal Area (Spherical)</code></td></tr> * <tr><td></td><td class="onright"><code>ESRI</code>:</td><td class="onleft"><code>Lambert_Azimuthal_Equal_Area</code></td></tr> * <tr><td></td><td class="onright"><code>NetCDF</code>:</td><td class="onleft"><code>LambertAzimuthalEqualArea</code></td></tr> * <tr><td></td><td class="onright"><code>GeoTIFF</code>:</td><td class="onleft"><code>CT_LambertAzimEqualArea</code></td></tr> * <tr><td></td><td class="onright"><code>PROJ4</code>:</td><td class="onleft"><code>laea</code></td></tr> * <tr><td><b>Identifier:</b></td><td class="onright"><code>EPSG</code>:</td><td class="onleft"><code>9820</code></td></tr> * <tr><td></td><td class="onright"><code>EPSG</code>:</td><td class="onleft"><code>1027</code></td></tr> * <tr><td></td><td class="onright"><code>EPSG</code>:</td><td class="onleft"><code><del>9821</del></code></td></tr> * <tr><td></td><td class="onright"><code>GeoTIFF</code>:</td><td class="onleft"><code>10</code></td></tr> * </table> * </th></tr> * <tr><td> * <table class="compact"> * <tr><td><b>Name:</b></td><td class="onright"><code>OGC</code>:</td><td class="onleft"><code>semi_major</code></td></tr> * <tr><td><b>Alias:</b></td><td class="onright"><code>EPSG</code>:</td><td class="onleft"><code>Semi-major axis</code></td></tr> * <tr><td></td><td class="onright"><code>ESRI</code>:</td><td class="onleft"><code>Semi_Major</code></td></tr> * <tr><td></td><td class="onright"><code>NetCDF</code>:</td><td class="onleft"><code>semi_major_axis</code></td></tr> * <tr><td></td><td class="onright"><code>GeoTIFF</code>:</td><td class="onleft"><code>SemiMajor</code></td></tr> * <tr><td></td><td class="onright"><code>PROJ4</code>:</td><td class="onleft"><code>a</code></td></tr> * </table> * </td><td> * <table class="compact"> * <tr><td><b>Type:</b></td><td>{@code Double}</td></tr> * <tr><td><b>Obligation:</b></td><td>mandatory</td></tr> * <tr><td><b>Value range:</b></td><td>[0…∞) metres</td></tr> * </table> * </td></tr> * <tr><td> * <table class="compact"> * <tr><td><b>Name:</b></td><td class="onright"><code>OGC</code>:</td><td class="onleft"><code>semi_minor</code></td></tr> * <tr><td><b>Alias:</b></td><td class="onright"><code>EPSG</code>:</td><td class="onleft"><code>Semi-minor axis</code></td></tr> * <tr><td></td><td class="onright"><code>ESRI</code>:</td><td class="onleft"><code>Semi_Minor</code></td></tr> * <tr><td></td><td class="onright"><code>NetCDF</code>:</td><td class="onleft"><code>semi_minor_axis</code></td></tr> * <tr><td></td><td class="onright"><code>GeoTIFF</code>:</td><td class="onleft"><code>SemiMinor</code></td></tr> * <tr><td></td><td class="onright"><code>PROJ4</code>:</td><td class="onleft"><code>b</code></td></tr> * </table> * </td><td> * <table class="compact"> * <tr><td><b>Type:</b></td><td>{@code Double}</td></tr> * <tr><td><b>Obligation:</b></td><td>mandatory</td></tr> * <tr><td><b>Value range:</b></td><td>[0…∞) metres</td></tr> * </table> * </td></tr> * <tr><td> * <table class="compact"> * <tr><td><b>Type:</b></td><td>{@code Boolean}</td></tr> * <tr><td><b>Obligation:</b></td><td>optional</td></tr> * <tr><td><b>Default value:</b></td><td>false</td></tr> * </table> * </td></tr> * <tr><td> * <table class="compact"> * <tr><td><b>Name:</b></td><td class="onright"><code>OGC</code>:</td><td class="onleft"><code>latitude_of_center</code></td></tr> * <tr><td><b>Alias:</b></td><td class="onright"><code>EPSG</code>:</td><td class="onleft"><code>Latitude of natural origin</code></td></tr> * <tr><td></td><td class="onright"><code>ESRI</code>:</td><td class="onleft"><code>Latitude_Of_Origin</code></td></tr> * <tr><td></td><td class="onright"><code>NetCDF</code>:</td><td class="onleft"><code>latitude_of_projection_origin</code></td></tr> * <tr><td></td><td class="onright"><code>GeoTIFF</code>:</td><td class="onleft"><code>ProjCenterLat</code></td></tr> * <tr><td></td><td class="onright"><code>PROJ4</code>:</td><td class="onleft"><code>lat_0</code></td></tr> * <tr><td></td><td class="onright"><code>EPSG</code>:</td><td class="onleft"><code><del>Spherical latitude of origin</del></code></td></tr> * </table> * </td><td> * <table class="compact"> * <tr><td><b>Type:</b></td><td>{@code Double}</td></tr> * <tr><td><b>Obligation:</b></td><td>mandatory</td></tr> * <tr><td><b>Value range:</b></td><td>[-90 … 90]°</td></tr> * <tr><td><b>Default value:</b></td><td>0°</td></tr> * </table> * </td></tr> * <tr><td> * <table class="compact"> * <tr><td><b>Name:</b></td><td class="onright"><code>OGC</code>:</td><td class="onleft"><code>longitude_of_center</code></td></tr> * <tr><td><b>Alias:</b></td><td class="onright"><code>EPSG</code>:</td><td class="onleft"><code>Longitude of natural origin</code></td></tr> * <tr><td></td><td class="onright"><code>ESRI</code>:</td><td class="onleft"><code>Central_Meridian</code></td></tr> * <tr><td></td><td class="onright"><code>NetCDF</code>:</td><td class="onleft"><code>longitude_of_projection_origin</code></td></tr> * <tr><td></td><td class="onright"><code>GeoTIFF</code>:</td><td class="onleft"><code>ProjCenterLong</code></td></tr> * <tr><td></td><td class="onright"><code>PROJ4</code>:</td><td class="onleft"><code>lon_0</code></td></tr> * <tr><td></td><td class="onright"><code>EPSG</code>:</td><td class="onleft"><code><del>Spherical longitude of origin</del></code></td></tr> * </table> * </td><td> * <table class="compact"> * <tr><td><b>Type:</b></td><td>{@code Double}</td></tr> * <tr><td><b>Obligation:</b></td><td>mandatory</td></tr> * <tr><td><b>Value range:</b></td><td>[-180 … 180]°</td></tr> * <tr><td><b>Default value:</b></td><td>0°</td></tr> * </table> * </td></tr> * <tr><td> * <table class="compact"> * <tr><td><b>Name:</b></td><td class="onright"><code>OGC</code>:</td><td class="onleft"><code>false_easting</code></td></tr> * <tr><td><b>Alias:</b></td><td class="onright"><code>EPSG</code>:</td><td class="onleft"><code>False easting</code></td></tr> * <tr><td></td><td class="onright"><code>ESRI</code>:</td><td class="onleft"><code>False_Easting</code></td></tr> * <tr><td></td><td class="onright"><code>NetCDF</code>:</td><td class="onleft"><code>false_easting</code></td></tr> * <tr><td></td><td class="onright"><code>GeoTIFF</code>:</td><td class="onleft"><code>FalseEasting</code></td></tr> * <tr><td></td><td class="onright"><code>PROJ4</code>:</td><td class="onleft"><code>x_0</code></td></tr> * </table> * </td><td> * <table class="compact"> * <tr><td><b>Type:</b></td><td>{@code Double}</td></tr> * <tr><td><b>Obligation:</b></td><td>mandatory</td></tr> * <tr><td><b>Value range:</b></td><td>(-∞ … ∞) metres</td></tr> * <tr><td><b>Default value:</b></td><td>0 metres</td></tr> * </table> * </td></tr> * <tr><td> * <table class="compact"> * <tr><td><b>Name:</b></td><td class="onright"><code>OGC</code>:</td><td class="onleft"><code>false_northing</code></td></tr> * <tr><td><b>Alias:</b></td><td class="onright"><code>EPSG</code>:</td><td class="onleft"><code>False northing</code></td></tr> * <tr><td></td><td class="onright"><code>ESRI</code>:</td><td class="onleft"><code>False_Northing</code></td></tr> * <tr><td></td><td class="onright"><code>NetCDF</code>:</td><td class="onleft"><code>false_northing</code></td></tr> * <tr><td></td><td class="onright"><code>GeoTIFF</code>:</td><td class="onleft"><code>FalseNorthing</code></td></tr> * <tr><td></td><td class="onright"><code>PROJ4</code>:</td><td class="onleft"><code>y_0</code></td></tr> * </table> * </td><td> * <table class="compact"> * <tr><td><b>Type:</b></td><td>{@code Double}</td></tr> * <tr><td><b>Obligation:</b></td><td>mandatory</td></tr> * <tr><td><b>Value range:</b></td><td>(-∞ … ∞) metres</td></tr> * <tr><td><b>Default value:</b></td><td>0 metres</td></tr> * </table> * </td></tr> * </table> */ public static final ParameterDescriptorGroup PARAMETERS = UniversalParameters.createDescriptorGroup( new Identifier[] { new NamedIdentifier(Citations.OGC, "Lambert_Azimuthal_Equal_Area"), new NamedIdentifier(Citations.EPSG, "Lambert Azimuthal Equal Area"), new NamedIdentifier(Citations.EPSG, "Lambert Azimuthal Equal Area (Spherical)"), new IdentifierCode (Citations.EPSG, 9820), new IdentifierCode (Citations.EPSG, 1027), new IdentifierCode (Citations.EPSG, 9821, 1027), // Legacy (deprecated) code. new NamedIdentifier(Citations.ESRI, "Lambert_Azimuthal_Equal_Area"), new NamedIdentifier(Citations.NETCDF, "LambertAzimuthalEqualArea"), new NamedIdentifier(Citations.GEOTIFF, "CT_LambertAzimEqualArea"), new IdentifierCode (Citations.GEOTIFF, 10), new NamedIdentifier(Citations.PROJ4, "laea"), new IdentifierCode(Citations.MAP_INFO, 4) }, null, new ParameterDescriptor<?>[] { SEMI_MAJOR, SEMI_MINOR, LATITUDE_OF_CENTRE, LONGITUDE_OF_CENTRE, (ParameterDescriptor) new Mercator2SP().getParameters().descriptor("scale_factor"), // Not an official parameter, provided for compatibility with those who still use it. FALSE_EASTING, FALSE_NORTHING }, MapProjectionDescriptor.ADD_EARTH_RADIUS); /** * Constructs a new provider. */ public LambertAzimuthalEqualArea() { super(PARAMETERS); } /** * Constructs a new provider for the given parameters. */ LambertAzimuthalEqualArea(ParameterDescriptorGroup parameters) { super(parameters); } /** * {@inheritDoc} */ @Override public MathTransform2D createMathTransform(MathTransformFactory factory, ParameterValueGroup values) { return org.geotoolkit.referencing.operation.projection.LambertAzimuthalEqualArea.create(this, values); } }