Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Geotoolkit.org - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2003-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.ConicProjection;
import org.opengis.referencing.ReferenceIdentifier;
import org.geotoolkit.resources.Vocabulary;
import org.geotoolkit.referencing.NamedIdentifier;
import org.geotoolkit.metadata.iso.citation.Citations;
/**
* The provider for "Albers Equal Area" projection (EPSG:9822).
* The math transform implementations instantiated by this provider may be any of the following classes:
*
The following table summarizes the parameters recognized by this provider.
* For a more detailed parameter list, see the {@link #PARAMETERS} constant.
*
Operation name: {@code Albers_Conic_Equal_Area}
* Area of use: (union of CRS domains of validity in EPSG database)
*
*
in latitudes:
45°00.0′S
to
71°24.0′N
*
in longitudes:
172°25.8′W
to
155°00.0′E
*
*
*
Parameter name
Default value
*
{@code semi_major}
*
{@code semi_minor}
*
{@code roll_longitude}
false
*
{@code central_meridian}
0°
*
{@code latitude_of_origin}
0°
*
{@code standard_parallel_1}
latitude of origin
*
{@code standard_parallel_2}
standard parallel 1
*
{@code false_easting}
0 metres
*
{@code false_northing}
0 metres
*
*
*
* @author Rueben Schulz (UBC)
* @author Martin Desruisseaux (Geomatys)
* @version 3.20
*
* @see Albers Equal-Area Conic on RemoteSensing.org
* @see Geotk coordinate operations matrix
*
* @since 2.1
* @module
*/
@Immutable
public class AlbersEqualArea extends MapProjection {
/**
* For cross-version compatibility.
*/
private static final long serialVersionUID = -7489679528438418778L;
/**
* 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°.
*
* @todo According the remote-sensing web site, the OGC name for this parameter
* is "longitude_of_center". However the spatial-reference
* web site said "central_meridian", which was also the usage in GeoTools
* 2.x and is preserved for now.
*
* @deprecated Invoke {@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String)
* descriptor(String)} instead.
*/
@Deprecated
public static final ParameterDescriptor CENTRAL_MERIDIAN =
UniversalParameters.CENTRAL_MERIDIAN.select(null,
"Longitude of false origin", // EPSG
"central_meridian", // OGC
"Central_Meridian", // ESRI
"longitude_of_central_meridian", // NetCDF
"NatOriginLong"); // GeoTIFF
/**
* The operation parameter descriptor for the {@linkplain
* org.geotoolkit.referencing.operation.projection.UnitaryProjection.Parameters#latitudeOfOrigin
* latitude of origin} parameter value.
*
* This parameter is optional.
* Valid values range is [-90 … 90]° and default value is 0°.
*
* @todo According the remote-sensing web site, the OGC name for this parameter
* is "latitude_of_center". However the spatial-reference
* web site said "latitude_of_origin", which was also the usage in GeoTools
* 2.x and is preserved for now.
*
* @deprecated Invoke {@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String)
* descriptor(String)} instead.
*/
@Deprecated
public static final ParameterDescriptor LATITUDE_OF_ORIGIN =
UniversalParameters.LATITUDE_OF_ORIGIN.select(null,
"Latitude of false origin", // EPSG
"latitude_of_origin", // OGC
"Latitude_Of_Origin", // ESRI
"NatOriginLat"); // GeoTIFF
/**
* The operation parameter descriptor for the first {@linkplain
* org.geotoolkit.referencing.operation.projection.UnitaryProjection.Parameters#standardParallels
* standard parallel} parameter value.
*
* This parameter is optional - if omitted,
* it takes the same value than the one given for {@link #LATITUDE_OF_ORIGIN}.
* Valid values range is [-90 … 90]°.
*
* @deprecated Invoke {@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String)
* descriptor(String)} instead.
*/
@Deprecated
public static final ParameterDescriptor STANDARD_PARALLEL_1 = LambertConformal2SP.STANDARD_PARALLEL_1;
/**
* The operation parameter descriptor for the second {@linkplain
* org.geotoolkit.referencing.operation.projection.UnitaryProjection.Parameters#standardParallels
* standard parallel} parameter value.
*
* This parameter is optional - if omitted,
* it takes the same value than the one given for {@link #STANDARD_PARALLEL_1}.
* Valid values range is [-90 … 90]°.
*
* @deprecated Invoke {@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String)
* descriptor(String)} instead.
*/
@Deprecated
public static final ParameterDescriptor STANDARD_PARALLEL_2 = LambertConformal2SP.STANDARD_PARALLEL_2;
/**
* 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 =
UniversalParameters.FALSE_EASTING.select(null,
"Easting at false origin", // EPSG
"FalseEasting"); // GeoTIFF
/**
* 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 =
UniversalParameters.FALSE_NORTHING.select(null,
"Northing at false origin", // 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:
*
* {@note According the remote-sensing web site, the OGC name for the
* "central_meridian" and "latitude_of_origin" parameters
* are "longitude_of_center" and "latitude_of_center" respectively.
* However the spatial-reference web site uses the former name, which was also
* the usage in GeoTools 2.x and is preserved for now.}
*
*
*
*
*
*
Name:
OGC:
Albers_Conic_Equal_Area
*
Alias:
EPSG:
Albers Equal Area
*
ESRI:
Albers
*
ESRI:
Albers_Equal_Area_Conic
*
NetCDF:
AlbersEqualArea
*
GeoTIFF:
CT_AlbersEqualArea
*
PROJ4:
aea
*
Geotk:
Albers Equal Area projection
*
Identifier:
EPSG:
9822
*
GeoTIFF:
11
*
*
*
*
*
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:
central_meridian
*
Alias:
EPSG:
Longitude of false origin
*
ESRI:
Central_Meridian
*
NetCDF:
longitude_of_central_meridian
*
GeoTIFF:
NatOriginLong
*
PROJ4:
lon_0
*
*
*
*
Type:
{@code Double}
*
Obligation:
mandatory
*
Value range:
[-180 … 180]°
*
Default value:
0°
*
*
*
*
*
Name:
OGC:
latitude_of_origin
*
Alias:
EPSG:
Latitude of false 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:
0°
*
*
*
*
*
Name:
OGC:
standard_parallel_1
*
Alias:
EPSG:
Latitude of 1st standard parallel
*
ESRI:
Standard_Parallel_1
*
NetCDF:
standard_parallel[1]
*
GeoTIFF:
StdParallel1
*
PROJ4:
lat_1
*
*
*
*
Type:
{@code Double}
*
Obligation:
optional
*
Value range:
[-90 … 90]°
*
Default value:
latitude of origin
*
*
*
*
*
Name:
OGC:
standard_parallel_2
*
Alias:
EPSG:
Latitude of 2nd standard parallel
*
ESRI:
Standard_Parallel_2
*
NetCDF:
standard_parallel[2]
*
GeoTIFF:
StdParallel2
*
PROJ4:
lat_2
*
*
*
*
Type:
{@code Double}
*
Obligation:
optional
*
Value range:
[-90 … 90]°
*
Default value:
standard parallel 1
*
*
*
*
*
Name:
OGC:
false_easting
*
Alias:
EPSG:
Easting at false origin
*
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:
Northing at false origin
*
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, "Albers_Conic_Equal_Area"),
new NamedIdentifier(Citations.EPSG, "Albers Equal Area"),
new IdentifierCode (Citations.EPSG, 9822),
new NamedIdentifier(Citations.ESRI, "Albers"),
new NamedIdentifier(Citations.ESRI, "Albers_Equal_Area_Conic"),
new NamedIdentifier(Citations.NETCDF, "AlbersEqualArea"),
new NamedIdentifier(Citations.GEOTIFF, "CT_AlbersEqualArea"),
new IdentifierCode (Citations.GEOTIFF, 11),
new NamedIdentifier(Citations.PROJ4, "aea"),
new NamedIdentifier(Citations.GEOTOOLKIT, Vocabulary.formatInternational(
Vocabulary.Keys.ALBERS_EQUAL_AREA_PROJECTION))
}, null, new ParameterDescriptor>[] {
SEMI_MAJOR, SEMI_MINOR, ROLL_LONGITUDE,
CENTRAL_MERIDIAN, LATITUDE_OF_ORIGIN,
STANDARD_PARALLEL_1, STANDARD_PARALLEL_2,
FALSE_EASTING, FALSE_NORTHING
}, MapProjectionDescriptor.ADD_EARTH_RADIUS |
MapProjectionDescriptor.ADD_STANDARD_PARALLEL);
/**
* Constructs a new provider.
*/
public AlbersEqualArea() {
super(PARAMETERS);
}
/**
* Returns the operation type for this map projection.
*/
@Override
public Class getOperationType() {
return ConicProjection.class;
}
/**
* {@inheritDoc}
*/
@Override
protected MathTransform2D createMathTransform(ParameterValueGroup values) {
return org.geotoolkit.referencing.operation.projection.AlbersEqualArea.create(getParameters(), values);
}
}