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.metadata.citation.Citation;
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.PlanarProjection;
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 "Orthographic" projection.
* 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 Orthographic}
*
*
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 Orthographic on RemoteSensing.org
* @see Geotk coordinate operations matrix
*
* @since 2.1
* @module
*/
@Immutable
public class Orthographic extends MapProjection {
/**
* For compatibility with different versions during deserialization.
*/
private static final long serialVersionUID = 3180410512573499562L;
/**
* 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 LONGITUDE_OF_CENTRE =
UniversalParameters.CENTRAL_MERIDIAN.select(null,
"Longitude of natural origin", // EPSG
"central_meridian", // OGC
"Longitude_Of_Center", // 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 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_CENTRE =
UniversalParameters.LATITUDE_OF_ORIGIN.select(null,
"Latitude of natural origin", // EPSG
"latitude_of_origin", // OGC
"Latitude_Of_Center", // ESRI
"ProjCenterLat"); // GeoTIFF
/**
* The operation parameter descriptor for the {@linkplain
* org.geotoolkit.referencing.operation.projection.UnitaryProjection.Parameters#scaleFactor
* scale factor} parameter value.
*
* This parameter is optional because
* remotesensing.org does not list it. 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 =
UniversalParameters.SCALE_FACTOR.select(false, null, new Citation[] {
Citations.NETCDF // NetCDF 4.3 doesn't have this parameter.
}, null,
"Scale factor at natural origin", // EPSG
"ScaleAtNatOrigin"); // GeoTIFF
/**
* 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 = 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 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 = 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:
*
*
*
*
*
*
Name:
OGC:
Orthographic
*
Alias:
EPSG:
Orthographic
*
ESRI:
Orthographic
*
NetCDF:
Orthographic
*
GeoTIFF:
CT_Orthographic
*
PROJ4:
ortho
*
Geotk:
Orthographic projection
*
Identifier:
EPSG:
9840
*
GeoTIFF:
21
*
*
*
*
*
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 natural origin
*
ESRI:
Longitude_Of_Center
*
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:
EPSG:
Latitude of natural origin
*
ESRI:
Latitude_Of_Center
*
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:
EPSG:
Scale factor at natural origin
*
ESRI:
Scale_Factor
*
GeoTIFF:
ScaleAtNatOrigin
*
PROJ4:
k
*
*
*
*
Type:
{@code Double}
*
Obligation:
optional
*
Value range:
[0…∞)
*
Default value:
1
*
*
*
*
*
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, "Orthographic"),
new NamedIdentifier(Citations.EPSG, "Orthographic"),
new IdentifierCode (Citations.EPSG, 9840),
new NamedIdentifier(Citations.ESRI, "Orthographic"),
new NamedIdentifier(Citations.NETCDF, "Orthographic"),
new NamedIdentifier(Citations.GEOTIFF, "CT_Orthographic"),
new IdentifierCode (Citations.GEOTIFF, 21),
new NamedIdentifier(Citations.PROJ4, "ortho"),
new NamedIdentifier(Citations.GEOTOOLKIT, Vocabulary.formatInternational(
Vocabulary.Keys.ORTHOGRAPHIC_PROJECTION))
}, null, new ParameterDescriptor>[] {
SEMI_MAJOR, SEMI_MINOR, ROLL_LONGITUDE,
LONGITUDE_OF_CENTRE, LATITUDE_OF_CENTRE,
SCALE_FACTOR, FALSE_EASTING, FALSE_NORTHING
}, MapProjectionDescriptor.ADD_EARTH_RADIUS);
/**
* Constructs a new provider.
*/
public Orthographic() {
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.Orthographic.create(getParameters(), values);
}
}