org.geotoolkit.referencing.operation.provider
Class Affine

Object
  extended by FormattableObject
      extended by AbstractIdentifiedObject
          extended by DefaultOperationMethod
              extended by MathTransformProvider
                  extended by Affine
All Implemented Interfaces:
Serializable, Formattable, LenientComparable, IdentifiedObject, OperationMethod

@Immutable
public class Affine
extends MathTransformProvider

The provider for "Affine general parametric transformation" (EPSG:9624). This is a special case of projective transforms. The OGC's name is "Affine". The default matrix size is 3×3.

Since:
2.0
Version:
3.00
Author:
Martin Desruisseaux (IRD)
See Also:
ProjectiveTransform, AffineTransform2D, LinearTransform1D, Serialized Form
Module:
referencing/geotk-referencing (download)    View source code for this class

Field Summary
static ParameterDescriptorGroup PARAMETERS
          The parameters group.
 
Fields inherited from class DefaultOperationMethod
sourceDimension, targetDimension
 
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
Affine()
          Creates a provider for affine transform with a default matrix size.
 
Method Summary
protected  MathTransform createMathTransform(ParameterValueGroup values)
          Creates a projective transform from the specified group of parameter values.
 Class<Conversion> getOperationType()
          Returns the operation type.
static Affine getProvider(int sourceDimension, int targetDimension)
          Returns the operation method for the specified source and target dimensions.
 
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, getAlias, getIdentifier, getIdentifiers, getName, getName, getRemarks, hashCode, 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

PARAMETERS

public static final ParameterDescriptorGroup PARAMETERS
The parameters group.

TODO:
We should register EPSG parameter identifiers (A0, A1, A2, B0, B1, B2) as well.
Constructor Detail

Affine

public Affine()
Creates a provider for affine transform with a default matrix size.

Method Detail

getOperationType

public Class<Conversion> getOperationType()
Returns the operation type.

Overrides:
getOperationType in class MathTransformProvider
Returns:
The GeoAPI interface implemented by this operation.

createMathTransform

protected MathTransform createMathTransform(ParameterValueGroup values)
                                     throws ParameterNotFoundException
Creates a projective transform from the specified group of parameter values.

Specified by:
createMathTransform in class MathTransformProvider
Parameters:
values - The group of parameter values.
Returns:
The created math transform.
Throws:
ParameterNotFoundException - if a required parameter was not found.

getProvider

public static Affine getProvider(int sourceDimension,
                                 int targetDimension)
Returns the operation method for the specified source and target dimensions. This method provides different methods for different matrix sizes.

Parameters:
sourceDimension - The number of source dimensions.
targetDimension - The number of target dimensions.
Returns:
The provider for transforms of the given source and target dimensions.


Copyright © 2009-2011 Geotoolkit.org. All Rights Reserved.