org.geotoolkit.referencing.operation.provider
Class MapProjection
Object
FormattableObject
AbstractIdentifiedObject
DefaultOperationMethod
MathTransformProvider
MapProjection
- All Implemented Interfaces:
- Serializable, Deprecable, LenientComparable, Formattable, IdentifiedObject, OperationMethod
- Direct Known Subclasses:
- AlbersEqualArea, CassiniSoldner, EquidistantCylindrical, Krovak, LambertAzimuthalEqualArea, LambertConformal1SP, LambertConformal2SP, Mercator1SP, Mercator2SP, MillerCylindrical, NewZealandMapGrid, ObliqueMercator, Orthographic, Polyconic, PseudoMercator, Stereographic, TransverseMercator
@Immutable
public abstract class MapProjection
- extends MathTransformProvider
The base provider for map projections.
This base class defines the descriptors for the most commonly used parameters. Subclasses will
declare the parameters they use in a descriptor group
named PARAMETERS.
- Since:
- 2.0
- Version:
- 3.20
- Author:
- Martin Desruisseaux (IRD, Geomatys)
- See Also:
- Map projections on MathWorld,
Map projections on the atlas of Canada,
Geotk coordinate operations matrix,
Serialized Form
- Module:
XY_PLANE_ROTATION
@Deprecated
public static final ParameterDescriptor<Double> XY_PLANE_ROTATION
- Deprecated. Invoke
PARAMETERS.descriptor(String) instead.- The operation parameter descriptor for the ESRI
"XY_Plane_Rotation" parameter value.
The rotation is applied before the false easting and false northing
translation, if any. Valid values range is [-360 … 360]°. This parameter is
optional and its default value is 0°.
This is an ESRI-specific parameter, but its usage could be extended to any projections.
The choice to allow this parameter or not is taken on a projection-by-projection basis.
- Since:
- 3.00
MapProjection
protected MapProjection(ParameterDescriptorGroup parameters)
- Constructs a math transform provider from a set of parameters. The provider
identifiers will be the same than the parameter
ones.
- Parameters:
parameters - The set of parameters (never null).
getOperationType
public Class<? extends Projection> getOperationType()
- Returns the operation type for this map projection.
- Overrides:
getOperationType in class MathTransformProvider
- Returns:
- The GeoAPI interface implemented by this operation.
createMathTransform
protected abstract MathTransform2D createMathTransform(ParameterValueGroup values)
throws ParameterNotFoundException
- Creates a map projection from the specified group of parameter values.
- Specified by:
createMathTransform in class MathTransformProvider
- Parameters:
values - The group of parameter values.
- Returns:
- The created map projection.
- Throws:
ParameterNotFoundException - if a required parameter was not found.
Copyright © 2009-2013 Geotoolkit.org. All Rights Reserved.