public class DefaultOperationMethod extends AbstractIdentifiedObject implements OperationMethod
DefaultOperation
,
Serialized FormModifier and Type | Field and Description |
---|---|
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.
|
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
SINGLE_LINE
FORMULA_KEY
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatches
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT
getAlias, getIdentifiers, getName, getRemarks, toWKT
protected final int sourceDimensions
protected final int targetDimensions
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.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.Copyright © 1996–2019 Geotools. All rights reserved.