All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.geotoolkit.referencing.operation.provider.Mercator2SP Maven / Gradle / Ivy

/*
 *    Geotoolkit.org - An Open Source Java GIS Toolkit
 *    http://www.geotoolkit.org
 *
 *    (C) 2005-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 net.jcip.annotations.Immutable;

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.CylindricalProjection;
import org.opengis.referencing.ReferenceIdentifier;

import org.geotoolkit.referencing.NamedIdentifier;
import org.geotoolkit.referencing.operation.projection.Mercator;
import org.geotoolkit.internal.referencing.DeprecatedName;
import org.geotoolkit.metadata.iso.citation.Citations;


/**
 * The provider for "Mercator (2SP)" projection (EPSG:9805).
 * The math transform implementations instantiated by this provider may be any of the following classes:
 * 

*

    *
  • {@link org.geotoolkit.referencing.operation.projection.Mercator}
  • *
* * *

The following table summarizes the parameters recognized by this provider. * For a more detailed parameter list, see the {@link #PARAMETERS} constant.

*

Operation name: {@code Mercator_2SP} *
Area of use: (union of CRS domains of validity in EPSG database)

*
* * *
in latitudes:55°57.0′Sto47°06.6′N
in longitudes:157°24.6′Wto170°53.4′E
* * * * * * * * * * *
Parameter nameDefault value
{@code semi_major}
{@code semi_minor}
{@code roll_longitude}false
{@code standard_parallel_1}
{@code latitude_of_origin}
{@code central_meridian}
{@code false_easting}0 metres
{@code false_northing}0 metres
* * * @author Martin Desruisseaux (IRD, Geomatys) * @author Rueben Schulz (UBC) * @version 3.20 * * @see Mercator 2SP on RemoteSensing.org * @see Geotk coordinate operations matrix * * @since 2.2 * @module */ @Immutable public class Mercator2SP extends MapProjection { /** * For cross-version compatibility. */ private static final long serialVersionUID = 6356028352681135786L; /** * The operation parameter descriptor for the {@linkplain * org.geotoolkit.referencing.operation.projection.UnitaryProjection.Parameters#centralMeridian * central meridian} parameter value. * * This parameter is mandatory. * Valid values range is [-180 … 180]° and default value is 0°. * * @deprecated Invoke {@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String) * descriptor(String)} instead. */ @Deprecated public static final ParameterDescriptor CENTRAL_MERIDIAN; /** * The operation parameter descriptor for the {@linkplain * org.geotoolkit.referencing.operation.projection.UnitaryProjection.Parameters#latitudeOfOrigin * latitude of origin} parameter value. * * This parameter is mandatory. * Valid values range is [-90 … 90]° and default value is 0°. * * @deprecated Invoke {@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String) * descriptor(String)} instead. */ @Deprecated public static final ParameterDescriptor LATITUDE_OF_ORIGIN; /** * The operation parameter descriptor for the standard parallel parameter value. * * This parameter is mandatory. * Valid values range is [-90 … 90]° and default value is 0°. * * @deprecated Invoke {@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String) * descriptor(String)} instead. */ @Deprecated public static final ParameterDescriptor STANDARD_PARALLEL; /** * The operation parameter descriptor for the {@linkplain * org.geotoolkit.referencing.operation.projection.UnitaryProjection.Parameters#falseEasting * false easting} parameter value. * * This parameter is mandatory. * Valid values range is unrestricted and default value is 0 metre. * * @deprecated Invoke {@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String) * descriptor(String)} instead. */ @Deprecated public static final ParameterDescriptor FALSE_EASTING; /** * The operation parameter descriptor for the {@linkplain * org.geotoolkit.referencing.operation.projection.UnitaryProjection.Parameters#falseNorthing * false northing} parameter value. * * This parameter is mandatory. * Valid values range is unrestricted and default value is 0 metre. * * @deprecated Invoke {@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String) * descriptor(String)} instead. */ @Deprecated public static final ParameterDescriptor FALSE_NORTHING; /** * Parameters creation, which must be done before to initialize the {@link #PARAMETERS} field. */ static { CENTRAL_MERIDIAN = UniversalParameters.CENTRAL_MERIDIAN.select(null, "Longitude of natural origin", // EPSG "central_meridian", // OGC "Central_Meridian", // ESRI "longitude_of_projection_origin", // NetCDF "NatOriginLong"); // GeoTIFF LATITUDE_OF_ORIGIN = UniversalParameters.LATITUDE_OF_ORIGIN.select(null, "Latitude of natural origin", // EPSG "latitude_of_origin", // OGC "Latitude_Of_Origin", // ESRI "NatOriginLat"); // GeoTIFF STANDARD_PARALLEL = UniversalParameters.STANDARD_PARALLEL_1.select(true, null, null, null, "Latitude of 1st standard parallel", // EPSG "standard_parallel_1", // OGC "Standard_Parallel_1", // ESRI "standard_parallel"); // NetCDF FALSE_EASTING = UniversalParameters.FALSE_EASTING.select(null, "False easting", // EPSG "FalseEasting"); // GeoTIFF FALSE_NORTHING = UniversalParameters.FALSE_NORTHING.select(null, "False northing", // EPSG "FalseNorthing"); // GeoTIFF } /** * The group of all parameters expected by this coordinate operation. * The following table lists the operation names and the parameters recognized by Geotk: *

* *

* * * * * * * * * *
* * * * * * * * * * *
Name:OGC:Mercator_2SP
Alias:EPSG:Mercator (variant B)
EPSG:Mercator (2SP)
ESRI:Mercator
NetCDF:Mercator
GeoTIFF:CT_Mercator
PROJ4:merc
Geotk:Cylindrical Mercator projection
Identifier:EPSG:9805
*
* * * * * * * *
Name:OGC:semi_major
Alias:EPSG:Semi-major axis
ESRI:Semi_Major
NetCDF:semi_major_axis
GeoTIFF:SemiMajor
PROJ4:a
*
* * * * *
Type:{@code Double}
Obligation:mandatory
Value range:[0…∞) metres
*
* * * * * * * *
Name:OGC:semi_minor
Alias:EPSG:Semi-minor axis
ESRI:Semi_Minor
NetCDF:semi_minor_axis
GeoTIFF:SemiMinor
PROJ4:b
*
* * * * *
Type:{@code Double}
Obligation:mandatory
Value range:[0…∞) metres
*
* * *
Name:Geotk:roll_longitude
*
* * * * *
Type:{@code Boolean}
Obligation:optional
Default value:false
*
* * * * * * * *
Name:OGC:standard_parallel_1
Alias:EPSG:Latitude of 1st standard parallel
ESRI:Standard_Parallel_1
NetCDF:standard_parallel
GeoTIFF:StdParallel1
PROJ4:lat_1
*
* * * * *
Type:{@code Double}
Obligation:mandatory
Value range:[-90 … 90]°
*
* * * * * * * *
Name:OGC:latitude_of_origin
Alias:EPSG:Latitude of natural origin
ESRI:Latitude_Of_Origin
NetCDF:latitude_of_projection_origin
GeoTIFF:NatOriginLat
PROJ4:lat_0
*
* * * * * *
Type:{@code Double}
Obligation:mandatory
Value range:[-90 … 90]°
Default value:
*
* * * * * * * *
Name:OGC:central_meridian
Alias:EPSG:Longitude of natural origin
ESRI:Central_Meridian
NetCDF:longitude_of_projection_origin
GeoTIFF:NatOriginLong
PROJ4:lon_0
*
* * * * * *
Type:{@code Double}
Obligation:mandatory
Value range:[-180 … 180]°
Default value:
*
* * * * * * * *
Name:OGC:false_easting
Alias:EPSG:False easting
ESRI:False_Easting
NetCDF:false_easting
GeoTIFF:FalseEasting
PROJ4:x_0
*
* * * * * *
Type:{@code Double}
Obligation:mandatory
Value range:(-∞ … ∞) metres
Default value:0 metres
*
* * * * * * * *
Name:OGC:false_northing
Alias:EPSG:False northing
ESRI:False_Northing
NetCDF:false_northing
GeoTIFF:FalseNorthing
PROJ4:y_0
*
* * * * * *
Type:{@code Double}
Obligation:mandatory
Value range:(-∞ … ∞) metres
Default value:0 metres
*
*/ public static final ParameterDescriptorGroup PARAMETERS = UniversalParameters.createDescriptorGroup( new ReferenceIdentifier[] { new NamedIdentifier(Citations.OGC, "Mercator_2SP"), new NamedIdentifier(Citations.EPSG, "Mercator (variant B)"), // Starting from 7.6 new DeprecatedName (Citations.EPSG, "Mercator (2SP)"), // Prior to EPSG version 7.6 new IdentifierCode (Citations.EPSG, 9805), new NamedIdentifier(Citations.ESRI, "Mercator"), new NamedIdentifier(Citations.NETCDF, "Mercator"), sameNameAs(Citations.GEOTIFF, Mercator1SP.PARAMETERS), sameNameAs(Citations.PROJ4, Mercator1SP.PARAMETERS), sameNameAs(Citations.GEOTOOLKIT, Mercator1SP.PARAMETERS) }, null, new ParameterDescriptor[] { SEMI_MAJOR, SEMI_MINOR, ROLL_LONGITUDE, STANDARD_PARALLEL, LATITUDE_OF_ORIGIN, CENTRAL_MERIDIAN, FALSE_EASTING, FALSE_NORTHING }, MapProjectionDescriptor.ADD_EARTH_RADIUS); /** * Constructs a new provider. */ public Mercator2SP() { super(PARAMETERS); } /** * Returns the operation type for this map projection. */ @Override public Class getOperationType() { return CylindricalProjection.class; } /** * {@inheritDoc} */ @Override protected MathTransform2D createMathTransform(ParameterValueGroup values) { return Mercator.create(getParameters(), values); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy