|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFormattableObject
AbstractIdentifiedObject
DefaultOperationMethod
MathTransformProvider
MapProjection
@Immutable public abstract class MapProjection
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.
| referencing/geotk-referencing (download) | View source code for this class |
| Field Summary | |
|---|---|
static ParameterDescriptor<Boolean> |
ROLL_LONGITUDE
The operation parameter descriptor for whatever the projection should roll longitude. |
static ParameterDescriptor<Double> |
SEMI_MAJOR
The operation parameter descriptor for the semi major parameter value. |
static ParameterDescriptor<Double> |
SEMI_MINOR
The operation parameter descriptor for the semi minor parameter value. |
static ParameterDescriptor<Double> |
X_SCALE
The operation parameter descriptor for the ESRI "X_Scale" parameter value. |
static ParameterDescriptor<Double> |
XY_PLANE_ROTATION
The operation parameter descriptor for the ESRI "XY_Plane_Rotation" parameter value. |
static ParameterDescriptor<Double> |
Y_SCALE
The operation parameter descriptor for the ESRI "Y_Scale" parameter value. |
| Fields inherited from class DefaultOperationMethod |
|---|
sourceDimension, targetDimension |
| Fields inherited from class AbstractIdentifiedObject |
|---|
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR |
| Fields inherited from class FormattableObject |
|---|
EPSG, GEOTIFF, INTERNAL, OGC, SINGLE_LINE |
| Fields inherited from interface OperationMethod |
|---|
FORMULA_KEY |
| Fields inherited from interface IdentifiedObject |
|---|
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
| Constructor Summary | |
|---|---|
protected |
MapProjection(ParameterDescriptorGroup parameters)
Constructs a math transform provider from a set of parameters. |
| Method Summary | |
|---|---|
protected abstract MathTransform2D |
createMathTransform(ParameterValueGroup values)
Creates a map projection from the specified group of parameter values. |
Class<? extends Projection> |
getOperationType()
Returns the operation type for this map projection. |
| Methods inherited from class MathTransformProvider |
|---|
ensureValidValues, formatWKT |
| Methods inherited from class DefaultOperationMethod |
|---|
checkDimensions, computeHashCode, equals, getFormula, getParameters, getSourceDimensions, getTargetDimensions |
| Methods inherited from class AbstractIdentifiedObject |
|---|
equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, hashCode, nameMatches, nameMatches, nameMatches |
| Methods inherited from class FormattableObject |
|---|
getDefaultIndentation, print, setDefaultIndentation, toString, toWKT, toWKT, toWKT |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface IdentifiedObject |
|---|
getAlias, getIdentifiers, getName, getRemarks, toWKT |
| Field Detail |
|---|
public static final ParameterDescriptor<Double> SEMI_MAJOR
public static final ParameterDescriptor<Double> SEMI_MINOR
public static final ParameterDescriptor<Boolean> ROLL_LONGITUDE
true, then the value of (longitude - central meridian) will be rolled to the [-180 … 180)° range before the projection
is applied. If false, then longitude rolling is never applied. If not provided, then
the default behavior is to roll longitude only if the central meridian is different than zero.
This is a Geotk-specific parameter.
public static final ParameterDescriptor<Double> X_SCALE
"X_Scale" parameter value.
Valid values range is unrestricted. This parameter is optional and its default value is 1.
This is an ESRI-specific parameter, but its usage could be extended to any projection. The choice to allow this parameter or not is taken on a projection-by-projection basis.
public static final ParameterDescriptor<Double> Y_SCALE
"Y_Scale" parameter value.
Valid values range is unrestricted. This parameter is optional and its default value is 1.
This is an ESRI-specific parameter, but its usage could be extended to any projection. The choice to allow this parameter or not is taken on a projection-by-projection basis.
public static final ParameterDescriptor<Double> XY_PLANE_ROTATION
"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.
| Constructor Detail |
|---|
protected MapProjection(ParameterDescriptorGroup parameters)
parameters - The set of parameters (never null).| Method Detail |
|---|
public Class<? extends Projection> getOperationType()
getOperationType in class MathTransformProvider
protected abstract MathTransform2D createMathTransform(ParameterValueGroup values)
throws ParameterNotFoundException
createMathTransform in class MathTransformProvidervalues - The group of parameter values.
ParameterNotFoundException - if a required parameter was not found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||