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) 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.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.CylindricalProjection;
import org.opengis.referencing.ReferenceIdentifier;
import org.geotoolkit.resources.Vocabulary;
import org.geotoolkit.referencing.NamedIdentifier;
import org.geotoolkit.internal.referencing.DeprecatedName;
import org.geotoolkit.metadata.iso.citation.Citations;
/**
* The provider for "Oblique Mercator" projection (EPSG:9815).
* 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 Oblique_Mercator}
* Area of use: (union of CRS domains of validity in EPSG database)
*
*
in latitudes:
25°39.6′S
to
48°36.0′N
*
in longitudes:
5°58.2′E
to
119°18.0′E
*
*
*
Parameter name
Default value
*
{@code semi_major}
*
{@code semi_minor}
*
{@code roll_longitude}
false
*
{@code longitude_of_center}
0°
*
{@code latitude_of_center}
0°
*
{@code azimuth}
*
{@code rectified_grid_angle}
Azimuth of initial line
*
{@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 Oblique Mercator on RemoteSensing.org
* @see Geotk coordinate operations matrix
*
* @since 2.1
* @module
*/
@Immutable
public class ObliqueMercator extends MapProjection {
/**
* For compatibility with different versions during deserialization.
*/
private static final long serialVersionUID = 201776686002266891L;
/**
* 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;
/**
* 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;
/**
* The operation parameter descriptor for the {@linkplain
* org.geotoolkit.referencing.operation.projection.UnitaryProjection.Parameters#azimuth azimuth}
* parameter value. Valid values range is from -360 to -270, -90 to 90, and 270 to 360 degrees.
* This parameter is mandatory and has no default value.
*
* @deprecated Invoke {@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String)
* descriptor(String)} instead.
*/
@Deprecated
public static final ParameterDescriptor AZIMUTH;
/**
* The operation parameter descriptor for the {@linkplain
* org.geotoolkit.referencing.operation.projection.ObliqueMercator.Parameters#rectifiedGridAngle
* rectifiedGridAngle} parameter value.
*
* This parameter is optional.
* Valid values rage is [-360 … 360]° and default value is the azimuth.
*
* @deprecated Invoke {@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String)
* descriptor(String)} instead.
*/
@Deprecated
public static final ParameterDescriptor RECTIFIED_GRID_ANGLE;
/**
* The operation parameter descriptor for the {@linkplain
* org.geotoolkit.referencing.operation.projection.UnitaryProjection.Parameters#scaleFactor
* scale factor} parameter value.
*
* This parameter is mandatory.
* 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 {
final Citation[] excludes = new Citation[] {Citations.NETCDF};
LONGITUDE_OF_CENTRE = UniversalParameters.CENTRAL_MERIDIAN.select(excludes,
"Longitude of projection centre", // EPSG
"longitude_of_center", // OGC
"Longitude_Of_Center", // ESRI
"CenterLong"); // GeoTIFF
LATITUDE_OF_CENTRE = UniversalParameters.LATITUDE_OF_ORIGIN.select(excludes,
"Latitude of projection centre", // EPSG
"latitude_of_center", // OGC
"Latitude_Of_Center", // ESRI
"CenterLat"); // GeoTIFF
AZIMUTH = UniversalParameters.AZIMUTH.select(excludes,
"Azimuth of initial line"); // EPSG
RECTIFIED_GRID_ANGLE = UniversalParameters.RECTIFIED_GRID_ANGLE;
SCALE_FACTOR = UniversalParameters.SCALE_FACTOR.select(excludes,
"Scale factor on initial line", // EPSG
"ScaleAtCenter"); // GeoTIFF
FALSE_EASTING = UniversalParameters.FALSE_EASTING.select(excludes,
"Easting at projection centre", // EPSG
"FalseEasting"); // GeoTIFF
FALSE_NORTHING = UniversalParameters.FALSE_NORTHING.select(excludes,
"Northing at projection centre", // 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:
Oblique_Mercator
*
Alias:
EPSG:
Hotine Oblique Mercator (variant B)
*
EPSG:
Rectified Skew Orthomorphic (RSO)
*
EPSG:
Oblique Mercator
*
ESRI:
Hotine_Oblique_Mercator_Azimuth_Center
*
ESRI:
Rectified_Skew_Orthomorphic_Center
*
GeoTIFF:
CT_ObliqueMercator
*
PROJ4:
omerc
*
Geotk:
Oblique Mercator projection
*
Identifier:
EPSG:
9815
*
GeoTIFF:
3
*
*
*
*
*
Name:
OGC:
semi_major
*
Alias:
EPSG:
Semi-major axis
*
ESRI:
Semi_Major
*
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
*
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:
longitude_of_center
*
Alias:
EPSG:
Longitude of projection centre
*
ESRI:
Longitude_Of_Center
*
GeoTIFF:
CenterLong
*
PROJ4:
lon_0
*
*
*
*
Type:
{@code Double}
*
Obligation:
mandatory
*
Value range:
[-180 … 180]°
*
Default value:
0°
*
*
*
*
*
Name:
OGC:
latitude_of_center
*
Alias:
EPSG:
Latitude of projection centre
*
ESRI:
Latitude_Of_Center
*
GeoTIFF:
CenterLat
*
PROJ4:
lat_0
*
*
*
*
Type:
{@code Double}
*
Obligation:
mandatory
*
Value range:
[-90 … 90]°
*
Default value:
0°
*
*
*
*
*
Name:
OGC:
azimuth
*
Alias:
EPSG:
Azimuth of initial line
*
ESRI:
Azimuth
*
GeoTIFF:
AzimuthAngle
*
*
*
*
Type:
{@code Double}
*
Obligation:
mandatory
*
Value range:
[-360 … 360]°
*
*
*
*
*
Name:
OGC:
rectified_grid_angle
*
Alias:
EPSG:
Angle from Rectified to Skew Grid
*
ESRI:
XY_Plane_Rotation
*
GeoTIFF:
RectifiedGridAngle
*
*
*
*
Type:
{@code Double}
*
Obligation:
optional
*
Value range:
[-360 … 360]°
*
Default value:
Azimuth of initial line
*
*
*
*
*
Name:
OGC:
scale_factor
*
Alias:
EPSG:
Scale factor on initial line
*
ESRI:
Scale_Factor
*
GeoTIFF:
ScaleAtCenter
*
PROJ4:
k
*
*
*
*
Type:
{@code Double}
*
Obligation:
mandatory
*
Value range:
[0…∞)
*
Default value:
1
*
*
*
*
*
Name:
OGC:
false_easting
*
Alias:
EPSG:
Easting at projection centre
*
ESRI:
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 projection centre
*
ESRI:
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, "Oblique_Mercator"),
new NamedIdentifier(Citations.EPSG, "Hotine Oblique Mercator (variant B)"), // Starting from 7.6
new NamedIdentifier(Citations.EPSG, "Rectified Skew Orthomorphic (RSO)"),
new DeprecatedName (Citations.EPSG, "Oblique Mercator"), // Prior to EPSG database version 7.6
new IdentifierCode (Citations.EPSG, 9815),
new NamedIdentifier(Citations.ESRI, "Hotine_Oblique_Mercator_Azimuth_Center"),
new NamedIdentifier(Citations.ESRI, "Rectified_Skew_Orthomorphic_Center"),
new NamedIdentifier(Citations.GEOTIFF, "CT_ObliqueMercator"),
new IdentifierCode (Citations.GEOTIFF, 3), // Also used by CT_ObliqueMercator_Hotine
new NamedIdentifier(Citations.PROJ4, "omerc"),
new NamedIdentifier(Citations.GEOTOOLKIT, Vocabulary.formatInternational(
Vocabulary.Keys.OBLIQUE_MERCATOR_PROJECTION))
}, null, new ParameterDescriptor>[] {
sameParameterAs(EquidistantCylindrical.PARAMETERS, "semi_major"),
sameParameterAs(EquidistantCylindrical.PARAMETERS, "semi_minor"),
ROLL_LONGITUDE,
LONGITUDE_OF_CENTRE, LATITUDE_OF_CENTRE,
AZIMUTH, RECTIFIED_GRID_ANGLE, SCALE_FACTOR,
FALSE_EASTING, FALSE_NORTHING
}, MapProjectionDescriptor.ADD_EARTH_RADIUS);
/**
* Constructs a new provider.
*/
public ObliqueMercator() {
super(PARAMETERS);
}
/**
* Constructs a new provider for the given parameters.
*/
ObliqueMercator(ParameterDescriptorGroup parameters) {
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 org.geotoolkit.referencing.operation.projection.ObliqueMercator.create(getParameters(), values);
}
/**
* The provider for "Oblique Mercator" projection specified by two points
* on the central line. This is different than the classical {@linkplain ObliqueMercator
* Oblique Mercator}, which uses a central point and azimuth.
*
*
*
The following table summarizes the parameters recognized by this provider.
* For a more detailed parameter list, see the {@link #PARAMETERS} constant.
*
*
* @author Rueben Schulz (UBC)
* @author Martin Desruisseaux (Geomatys)
* @version 3.20
*
* @see org.geotoolkit.referencing.operation.projection.ObliqueMercator
* @see Geotk coordinate operations matrix
*
* @since 2.1
* @module
*/
@Immutable
public static class TwoPoint extends ObliqueMercator {
/**
* For compatibility with different versions during deserialization.
*/
private static final long serialVersionUID = 7124258885016543889L;
/**
* The operation parameter descriptor for the {@code latitudeOf1stPoint} parameter value.
* Valid values range is [-90 … 90]°. This parameter is mandatory and has no
* default value.
*
* @deprecated Invoke {@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String)
* descriptor(String)} instead.
*/
@Deprecated
public static final ParameterDescriptor LAT_OF_1ST_POINT = UniversalParameters.LAT_OF_1ST_POINT;
/**
* The operation parameter descriptor for the {@code longitudeOf1stPoint} parameter value.
* Valid values range is [-180 … 180]°. This parameter is mandatory and has no
* default value.
*
* @deprecated Invoke {@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String)
* descriptor(String)} instead.
*/
@Deprecated
public static final ParameterDescriptor LONG_OF_1ST_POINT = UniversalParameters.LONG_OF_1ST_POINT;
/**
* The operation parameter descriptor for the {@code latitudeOf2ndPoint} parameter value.
* Valid values range is [-90 … 90]°. This parameter is mandatory and has no
* default value.
*
* @deprecated Invoke {@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String)
* descriptor(String)} instead.
*/
@Deprecated
public static final ParameterDescriptor LAT_OF_2ND_POINT = UniversalParameters.LAT_OF_2ND_POINT;
/**
* The operation parameter descriptor for the {@code longitudeOf2ndPoint} parameter value.
* Valid values range is [-180 … 180]°. This parameter is mandatory and has no
* default value.
*
* @deprecated Invoke {@linkplain #PARAMETERS}.{@linkplain ParameterDescriptorGroup#descriptor(String)
* descriptor(String)} instead.
*/
@Deprecated
public static final ParameterDescriptor LONG_OF_2ND_POINT = UniversalParameters.LONG_OF_2ND_POINT;
/**
* The group of all parameters expected by this coordinate operation.
* The following table lists the operation names and the parameters recognized by Geotk:
*
*
*
*
*
*
Name:
ESRI:
Hotine_Oblique_Mercator_Two_Point_Center
*
Alias:
Geotk:
Oblique Mercator projection
*
*
*
*
*
Name:
ESRI:
Semi_Major
*
*
*
*
Type:
{@code Double}
*
Obligation:
mandatory
*
Value range:
[0…∞) metres
*
*
*
*
*
Name:
ESRI:
Semi_Minor
*
*
*
*
Type:
{@code Double}
*
Obligation:
mandatory
*
Value range:
[0…∞) metres
*
*
*
*
*
Name:
Geotk:
roll_longitude
*
*
*
*
Type:
{@code Boolean}
*
Obligation:
optional
*
Default value:
false
*
*
*
*
*
Name:
ESRI:
Latitude_Of_1st_Point
*
*
*
*
Type:
{@code Double}
*
Obligation:
mandatory
*
Value range:
[-90 … 90]°
*
*
*
*
*
Name:
ESRI:
Longitude_Of_1st_Point
*
*
*
*
Type:
{@code Double}
*
Obligation:
mandatory
*
Value range:
[-180 … 180]°
*
*
*
*
*
Name:
ESRI:
Latitude_Of_2nd_Point
*
*
*
*
Type:
{@code Double}
*
Obligation:
mandatory
*
Value range:
[-90 … 90]°
*
*
*
*
*
Name:
ESRI:
Longitude_Of_2nd_Point
*
*
*
*
Type:
{@code Double}
*
Obligation:
mandatory
*
Value range:
[-180 … 180]°
*
*
*
*
*
Name:
ESRI:
Latitude_Of_Center
*
*
*
*
Type:
{@code Double}
*
Obligation:
mandatory
*
Value range:
[-90 … 90]°
*
Default value:
0°
*
*
*
*
*
Name:
ESRI:
Scale_Factor
*
*
*
*
Type:
{@code Double}
*
Obligation:
mandatory
*
Value range:
[0…∞)
*
Default value:
1
*
*
*
*
*
Name:
ESRI:
False_Easting
*
*
*
*
Type:
{@code Double}
*
Obligation:
mandatory
*
Value range:
(-∞ … ∞) metres
*
Default value:
0 metres
*
*
*
*
*
Name:
ESRI:
False_Northing
*
*
*
*
Type:
{@code Double}
*
Obligation:
mandatory
*
Value range:
(-∞ … ∞) metres
*
Default value:
0 metres
*
*
*
*/
@SuppressWarnings("hiding")
public static final ParameterDescriptorGroup PARAMETERS = UniversalParameters.createDescriptorGroup(
new NamedIdentifier[] {
new NamedIdentifier(Citations.ESRI, "Hotine_Oblique_Mercator_Two_Point_Center"),
sameNameAs(Citations.GEOTOOLKIT, ObliqueMercator.PARAMETERS)
}, new Citation[] { // Authorities to exclude from the parameter descriptors.
Citations.EPSG, Citations.OGC, Citations.NETCDF, Citations.GEOTIFF, Citations.PROJ4
}, new ParameterDescriptor>[] {
SEMI_MAJOR, SEMI_MINOR, ROLL_LONGITUDE,
LAT_OF_1ST_POINT, LONG_OF_1ST_POINT,
LAT_OF_2ND_POINT, LONG_OF_2ND_POINT,
LATITUDE_OF_CENTRE, SCALE_FACTOR,
FALSE_EASTING, FALSE_NORTHING
}, MapProjectionDescriptor.ADD_EARTH_RADIUS);
/**
* Constructs a new provider.
*/
public TwoPoint() {
super(PARAMETERS);
}
}
}