| org.geotools.referencing.AbstractIdentifiedObject org.geotools.referencing.operation.DefaultOperationMethod
All known Subclasses: org.geotools.referencing.operation.MathTransformProvider,
DefaultOperationMethod | public class DefaultOperationMethod extends AbstractIdentifiedObject implements OperationMethod(Code) | | Definition of an algorithm used to perform a coordinate operation. Most operation
methods use a number of operation parameters, although some coordinate conversions
use none. Each coordinate operation using the method assigns values to these parameters.
since: 2.1 version: $Id: DefaultOperationMethod.java 24925 2007-03-27 20:12:08Z jgarnett $ author: Martin Desruisseaux See Also: DefaultOperation |
Field Summary | |
final protected int | sourceDimensions Number of dimensions in the source CRS of this operation method. | final protected int | targetDimensions Number of dimensions in the target CRS of this operation method. |
Constructor Summary | |
public | DefaultOperationMethod(MathTransform transform) Convenience constructor that creates an operation method from a math transform. | public | DefaultOperationMethod(OperationMethod method) Constructs a new operation method with the same values than the specified one.
This copy constructor provides a way to wrap an arbitrary implementation into a
Geotools one or a user-defined one (as a subclass), usually in order to leverage
some implementation-specific API. | public | DefaultOperationMethod(OperationMethod method, int sourceDimensions, int targetDimensions) Constructs a new operation method with the same values than the specified one
except the dimensions. | public | DefaultOperationMethod(Map properties, int sourceDimensions, int targetDimensions, ParameterDescriptorGroup parameters) Constructs an operation method from a set of properties and a descriptor group.
The properties given in argument follow the same rules than for the
.
Additionally, the following properties are understood by this construtor:
Parameters: properties - Set of properties. |
Method Summary | |
public static void | checkDimensions(OperationMethod method, MathTransform transform) Checks if an operation method and a math transform have a compatible number of source
and target dimensions. | public boolean | equals(AbstractIdentifiedObject object, boolean compareMetadata) Compare this operation method with the specified object for equality.
If
compareMetadata is
true , then all available
properties are compared including
.
Parameters: object - The object to compare to this . Parameters: compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations. | protected String | formatWKT(Formatter formatter) Format the inner part of a
Well
Known Text (WKT) element.
Parameters: formatter - The formatter to use. | public InternationalString | getFormula() Formula(s) or procedure used by this operation method. | Class | getOperationType() Returns the operation type. | public ParameterDescriptorGroup | getParameters() Returns the set of parameters. | public int | getSourceDimensions() Number of dimensions in the source CRS of this operation method. | public int | getTargetDimensions() Number of dimensions in the target CRS of this operation method. | public int | hashCode() Returns a hash code value for this operation method. |
sourceDimensions | final protected int sourceDimensions(Code) | | Number of dimensions in the source CRS of this operation method.
|
targetDimensions | final protected int targetDimensions(Code) | | Number of dimensions in the target CRS of this operation method.
|
DefaultOperationMethod | public DefaultOperationMethod(MathTransform transform)(Code) | | Convenience constructor that creates an operation method from a math transform.
The information provided in the newly created object are approximative, and
usually acceptable only as a fallback when no other information are available.
Parameters: transform - The math transform to describe. |
DefaultOperationMethod | public DefaultOperationMethod(OperationMethod method)(Code) | | Constructs a new operation method with the same values than the specified one.
This copy constructor provides a way to wrap an arbitrary implementation into a
Geotools one or a user-defined one (as a subclass), usually in order to leverage
some implementation-specific API. This constructor performs a shallow copy,
i.e. the properties are not cloned.
|
DefaultOperationMethod | public DefaultOperationMethod(OperationMethod method, int sourceDimensions, int targetDimensions)(Code) | | Constructs a new operation method with the same values than the specified one
except the dimensions.
Parameters: method - The operation method to copy. Parameters: sourceDimensions - Number of dimensions in the source CRS of this operation method. Parameters: targetDimensions - Number of dimensions in the target CRS of this operation method. |
DefaultOperationMethod | public DefaultOperationMethod(Map properties, int sourceDimensions, int targetDimensions, ParameterDescriptorGroup parameters)(Code) | | Constructs an operation method from a set of properties and a descriptor group.
The properties given in argument follow the same rules than for the
.
Additionally, the following properties are understood by this construtor:
Parameters: properties - Set of properties. Should contains at least "name" . Parameters: sourceDimensions - Number of dimensions in the source CRS of this operation method. Parameters: targetDimensions - Number of dimensions in the target CRS of this operation method. Parameters: parameters - The set of parameters, or null if none. |
checkDimensions | public static void checkDimensions(OperationMethod method, MathTransform transform) throws MismatchedDimensionException(Code) | | Checks if an operation method and a math transform have a compatible number of source
and target dimensions. In the special case of a
, the method's dimensions may be checked against the
's dimensions.
This convenience method is provided for argument checking.
Parameters: method - The operation method to compare to the math transform, or null . Parameters: transform - The math transform to compare to the operation method, or null . throws: MismatchedDimensionException - if the number of dimensions are incompatibles.ConcatenatedTransformPassThroughTransform |
equals | public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code) | | Compare this operation method with the specified object for equality.
If
compareMetadata is
true , then all available
properties are compared including
.
Parameters: object - The object to compare to this . Parameters: compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations. true if both objects are equal. |
getFormula | public InternationalString getFormula()(Code) | | Formula(s) or procedure used by this operation method. This may be a reference to a
publication. Note that the operation method may not be analytic, in which case this
attribute references or contains the procedure, not an analytic formula.
|
getOperationType | Class getOperationType()(Code) | | Returns the operation type. Current implementation returns
Projection.class for
proper WKT formatting using an unknow implementation. But the
MathTransformProvider subclass (with protected access) will overrides this method with a more conservative default
value.
|
getParameters | public ParameterDescriptorGroup getParameters()(Code) | | Returns the set of parameters.
|
getSourceDimensions | public int getSourceDimensions()(Code) | | Number of dimensions in the source CRS of this operation method.
The dimension of source CRS. |
getTargetDimensions | public int getTargetDimensions()(Code) | | Number of dimensions in the target CRS of this operation method.
|
hashCode | public int hashCode()(Code) | | Returns a hash code value for this operation method.
|
Methods inherited from org.geotools.referencing.AbstractIdentifiedObject | protected static Set asSet(Object[] array)(Code)(Java Doc) protected static void ensureAngularUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureLinearUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureNonNull(String name, Object object) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureNonNull(String name, Object[] array, int index) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureTimeUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) final public boolean equals(Object object)(Code)(Java Doc) public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(IdentifiedObject object1, IdentifiedObject object2, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(IdentifiedObject[] array1, IdentifiedObject[] array2, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(Collection collection1, Collection collection2, boolean compareMetadata)(Code)(Java Doc) public Collection getAlias()(Code)(Java Doc) public ReferenceIdentifier getIdentifier(Citation authority)(Code)(Java Doc) public static ReferenceIdentifier getIdentifier(IdentifiedObject info, Citation authority)(Code)(Java Doc) public Set getIdentifiers()(Code)(Java Doc) public ReferenceIdentifier getName()(Code)(Java Doc) public String getName(Citation authority)(Code)(Java Doc) public static String getName(IdentifiedObject info, Citation authority)(Code)(Java Doc) public static Map getProperties(IdentifiedObject info)(Code)(Java Doc) public static Map getProperties(IdentifiedObject info, Citation authority)(Code)(Java Doc) public InternationalString getRemarks()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean nameMatches(String name)(Code)(Java Doc) public static boolean nameMatches(IdentifiedObject object, String name)(Code)(Java Doc) public static boolean nameMatches(IdentifiedObject o1, IdentifiedObject o2)(Code)(Java Doc)
|
|
|