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) 1999-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.metadata.citation.Citation;
import org.opengis.parameter.ParameterValueGroup;
import org.opengis.parameter.ParameterDescriptor;
import org.opengis.parameter.ParameterDescriptorGroup;
import org.opengis.referencing.ReferenceIdentifier;
import org.opengis.referencing.operation.MathTransform2D;
import org.opengis.referencing.operation.PlanarProjection;
import org.geotoolkit.resources.Vocabulary;
import org.geotoolkit.referencing.NamedIdentifier;
import org.geotoolkit.metadata.iso.citation.Citations;
/**
* The base provider for "Stereographic" projections.
* The default implementation uses USGS equations. This is not the provider
* for EPSG:9809. For the later, use {@link ObliqueStereographic} instead.
*
* 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 Stereographic}
*
*
Parameter name
Default value
*
{@code semi_major}
*
{@code semi_minor}
*
{@code roll_longitude}
false
*
{@code central_meridian}
0°
*
{@code latitude_of_origin}
0°
*
{@code scale_factor}
1
*
{@code false_easting}
0 metres
*
{@code false_northing}
0 metres
*
*
*
* @author Rueben Schulz (UBC)
* @author Martin Desruisseaux (Geomatys)
* @version 3.20
*
* @see Stereographic on RemoteSensing.org
* @see Geotk coordinate operations matrix
*
* @see ObliqueStereographic
* @see PolarStereographic
*
* @since 2.4
* @module
*/
@Immutable
public class Stereographic extends MapProjection {
/**
* For compatibility with different versions during deserialization.
*/
private static final long serialVersionUID = 1243300263948365065L;
/**
* 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 {@linkplain
* org.geotoolkit.referencing.operation.projection.UnitaryProjection.Parameters#scaleFactor
* scale factor} parameter value.
*
* This parameter is optional as in
* remotesensing.org. Valid values range is (0 … ∞) and
* default value is 1.
*
* @deprecated Invoke {@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String)
* descriptor(String)} instead.
*/
@Deprecated
public static final ParameterDescriptor SCALE_FACTOR;
/**
* 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
"ProjCenterLong"); // GeoTIFF
LATITUDE_OF_ORIGIN = UniversalParameters.LATITUDE_OF_ORIGIN.select(null,
"Latitude of natural origin", // EPSG
"latitude_of_origin", // OGC
"Latitude_Of_Origin", // ESRI
"ProjCenterLat"); // GeoTIFF
SCALE_FACTOR = UniversalParameters.SCALE_FACTOR.select(false, null, null, null,
"Scale factor at natural origin", // EPSG
"scale_factor_at_projection_origin", // NetCDF
"ScaleAtNatOrigin"); // GeoTIFF
FALSE_EASTING = Orthographic.FALSE_EASTING;
FALSE_NORTHING = Orthographic.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.
* Note that at the opposite of most other map projections, the Scale factor
* parameter in this group is optional,
* as documented in the remotesensing.org web site.
*
*
*
*
*
*
Name:
OGC:
Stereographic
*
Alias:
ESRI:
Stereographic
*
NetCDF:
Stereographic
*
GeoTIFF:
CT_Stereographic
*
PROJ4:
stere
*
Geotk:
Stereographic projection
*
Identifier:
GeoTIFF:
14
*
*
*
*
*
Name:
OGC:
semi_major
*
Alias:
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:
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:
ESRI:
Central_Meridian
*
NetCDF:
longitude_of_projection_origin
*
GeoTIFF:
ProjCenterLong
*
PROJ4:
lon_0
*
*
*
*
Type:
{@code Double}
*
Obligation:
mandatory
*
Value range:
[-180 … 180]°
*
Default value:
0°
*
*
*
*
*
Name:
OGC:
latitude_of_origin
*
Alias:
ESRI:
Latitude_Of_Origin
*
NetCDF:
latitude_of_projection_origin
*
GeoTIFF:
ProjCenterLat
*
PROJ4:
lat_0
*
*
*
*
Type:
{@code Double}
*
Obligation:
mandatory
*
Value range:
[-90 … 90]°
*
Default value:
0°
*
*
*
*
*
Name:
OGC:
scale_factor
*
Alias:
ESRI:
Scale_Factor
*
NetCDF:
scale_factor_at_projection_origin
*
GeoTIFF:
ScaleAtNatOrigin
*
PROJ4:
k
*
*
*
*
Type:
{@code Double}
*
Obligation:
optional
*
Value range:
[0…∞)
*
Default value:
1
*
*
*
*
*
Name:
OGC:
false_easting
*
Alias:
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:
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, "Stereographic"),
new NamedIdentifier(Citations.ESRI, "Stereographic"),
new NamedIdentifier(Citations.NETCDF, "Stereographic"),
new NamedIdentifier(Citations.GEOTIFF, "CT_Stereographic"),
new IdentifierCode (Citations.GEOTIFF, 14),
new NamedIdentifier(Citations.PROJ4, "stere"),
new NamedIdentifier(Citations.GEOTOOLKIT, Vocabulary.formatInternational(
Vocabulary.Keys.STEREOGRAPHIC_PROJECTION))
}, new Citation[] {
Citations.EPSG
},
new ParameterDescriptor>[] {
SEMI_MAJOR, SEMI_MINOR, ROLL_LONGITUDE,
CENTRAL_MERIDIAN, LATITUDE_OF_ORIGIN, SCALE_FACTOR,
FALSE_EASTING, FALSE_NORTHING
}, MapProjectionDescriptor.ADD_EARTH_RADIUS);
/**
* Constructs a new provider.
*/
public Stereographic() {
super(PARAMETERS);
}
/**
* Constructs a provider from a set of parameters.
*
* @param parameters The set of parameters (never {@code null}).
*/
Stereographic(final ParameterDescriptorGroup parameters) {
super(parameters);
}
/**
* Returns the operation type for this map projection.
*/
@Override
public Class getOperationType() {
return PlanarProjection.class;
}
/**
* {@inheritDoc}
*/
@Override
protected MathTransform2D createMathTransform(ParameterValueGroup values) {
return org.geotoolkit.referencing.operation.projection.Stereographic.create(getParameters(), values);
}
}