|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectFormattable
AbstractIdentifiedObject
DefaultOperationMethod
public class DefaultOperationMethod
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.
DefaultOperation
,
Serialized Form
Field Summary | |
---|---|
protected int |
sourceDimensions
Number of dimensions in the source CRS of this operation method. |
protected int |
targetDimensions
Number of dimensions in the target CRS of this operation method. |
Fields inherited from class AbstractIdentifiedObject |
---|
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR |
Fields inherited from class Formattable |
---|
SINGLE_LINE |
Fields inherited from interface OperationMethod |
---|
FORMULA_KEY |
Fields inherited from interface IdentifiedObject |
---|
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
Constructor Summary | |
---|---|
DefaultOperationMethod(Map<String,?> properties,
int sourceDimensions,
int targetDimensions,
ParameterDescriptorGroup parameters)
Constructs an operation method from a set of properties and a descriptor group. |
|
DefaultOperationMethod(MathTransform transform)
Convenience constructor that creates an operation method from a math transform. |
|
DefaultOperationMethod(OperationMethod method)
Constructs a new operation method with the same values than the specified one. |
|
DefaultOperationMethod(OperationMethod method,
int sourceDimensions,
int targetDimensions)
Constructs a new operation method with the same values than the specified one except the dimensions. |
Method Summary | |
---|---|
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. |
boolean |
equals(AbstractIdentifiedObject object,
boolean compareMetadata)
Compare this operation method with the specified object for equality. |
protected String |
formatWKT(Formatter formatter)
Format the inner part of a Well Known Text (WKT) element. |
InternationalString |
getFormula()
Formula(s) or procedure used by this operation method. |
ParameterDescriptorGroup |
getParameters()
Returns the set of parameters. |
int |
getSourceDimensions()
Number of dimensions in the source CRS of this operation method. |
int |
getTargetDimensions()
Number of dimensions in the target CRS of this operation method. |
int |
hashCode()
Returns a hash code value for this operation method. |
Methods inherited from class AbstractIdentifiedObject |
---|
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatches |
Methods inherited from class Formattable |
---|
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 |
---|
protected final int sourceDimensions
protected final int targetDimensions
Constructor Detail |
---|
public DefaultOperationMethod(MathTransform transform)
transform
- The math transform to describe.public DefaultOperationMethod(OperationMethod method)
method
- The operation method to copy.public DefaultOperationMethod(OperationMethod method, int sourceDimensions, int targetDimensions)
method
- The operation method to copy.sourceDimensions
- Number of dimensions in the source CRS of this operation method.targetDimensions
- Number of dimensions in the target CRS of this operation method.public DefaultOperationMethod(Map<String,?> properties, int sourceDimensions, int targetDimensions, ParameterDescriptorGroup parameters)
Property name | Value type | Value given to |
---|---|---|
"formula" |
String or InternationalString |
getFormula() |
properties
- Set of properties. Should contains at least "name"
.sourceDimensions
- Number of dimensions in the source CRS of this operation method.targetDimensions
- Number of dimensions in the target CRS of this operation method.parameters
- The set of parameters, or null
if none.Method Detail |
---|
public InternationalString getFormula()
getFormula
in interface OperationMethod
public int getSourceDimensions()
getSourceDimensions
in interface OperationMethod
public int getTargetDimensions()
getTargetDimensions
in interface OperationMethod
public ParameterDescriptorGroup getParameters()
getParameters
in interface OperationMethod
public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)
compareMetadata
is true
, then all available
properties are compared including formula.
equals
in class AbstractIdentifiedObject
object
- The object to compare to this
.compareMetadata
- true
for performing a strict comparaison, or
false
for comparing only properties relevant to transformations.
true
if both objects are equal.public int hashCode()
hashCode
in class AbstractIdentifiedObject
protected String formatWKT(Formatter formatter)
formatWKT
in class Formattable
formatter
- The formatter to use.
Formattable.toWKT()
,
Formattable.toString()
public static void checkDimensions(OperationMethod method, MathTransform transform) throws MismatchedDimensionException
This convenience method is provided for argument checking.
method
- The operation method to compare to the math transform, or null
.transform
- The math transform to compare to the operation method, or null
.
MismatchedDimensionException
- if the number of dimensions are incompatibles.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |