Class DefaultConcatenatedOperation
Object
Formattable
AbstractIdentifiedObject
AbstractCoordinateOperation
DefaultConcatenatedOperation
- All Implemented Interfaces:
Serializable
,IdentifiedObject
,ConcatenatedOperation
,CoordinateOperation
public class DefaultConcatenatedOperation
extends AbstractCoordinateOperation
implements ConcatenatedOperation
An ordered sequence of two or more single coordinate operations. The sequence of operations is constrained by the
requirement that the source coordinate reference system of step (n+1) must be the same as the target
coordinate reference system of step (n). The source coordinate reference system of the first step and the
target coordinate reference system of the last step are the source and target coordinate reference system associated
with the concatenated operation.
- Since:
- 2.1
- Author:
- Martin Desruisseaux (IRD)
- See Also:
-
Field Summary
Fields inherited from class AbstractCoordinateOperation
domainOfValidity, EMPTY_ACCURACY_ARRAY, sourceCRS, targetCRS, transform
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 CoordinateOperation
COORDINATE_OPERATION_ACCURACY_KEY, DOMAIN_OF_VALIDITY_KEY, OPERATION_VERSION_KEY, SCOPE_KEY
Fields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultConcatenatedOperation
(String name, CoordinateOperation... operations) Constructs a concatenated operation from the specified name.DefaultConcatenatedOperation
(Map<String, ?> properties, CoordinateOperation... operations) Constructs a concatenated operation from a set of properties.DefaultConcatenatedOperation
(Map<String, ?> properties, CoordinateOperation[] operations, MathTransformFactory factory) Constructs a concatenated operation from a set of properties and a math transform factory. -
Method Summary
Modifier and TypeMethodDescriptionboolean
equals
(AbstractIdentifiedObject object, boolean compareMetadata) Compare this concatenated operation with the specified object for equality.protected String
Format this operation as a pseudo-WKT format.Returns the sequence of operations.int
hashCode()
Returns a hash code value for this concatenated operation.Methods inherited from class AbstractCoordinateOperation
getAccuracy, getAccuracy, getCoordinateOperationAccuracy, getDomainOfValidity, getMathTransform, getOperationVersion, getScope, getSourceCRS, getTargetCRS, getType
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
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT
Methods inherited from interface CoordinateOperation
getCoordinateOperationAccuracy, getDomainOfValidity, getMathTransform, getOperationVersion, getScope, getSourceCRS, getTargetCRS
Methods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
-
Constructor Details
-
DefaultConcatenatedOperation
Constructs a concatenated operation from the specified name.- Parameters:
name
- The operation name.operations
- The sequence of operations.
-
DefaultConcatenatedOperation
Constructs a concatenated operation from a set of properties. The properties given in argument follow the same rules than for theAbstractCoordinateOperation
constructor.- Parameters:
properties
- Set of properties. Should contains at least"name"
.operations
- The sequence of operations.
-
DefaultConcatenatedOperation
public DefaultConcatenatedOperation(Map<String, ?> properties, CoordinateOperation[] operations, MathTransformFactory factory) throws FactoryExceptionConstructs a concatenated operation from a set of properties and a math transform factory. The properties given in argument follow the same rules than for theAbstractCoordinateOperation
constructor.- Parameters:
properties
- Set of properties. Should contains at least"name"
.operations
- The sequence of operations.factory
- The math transform factory to use for math transforms concatenation.- Throws:
FactoryException
- if the factory can't concatenate the math transforms.
-
-
Method Details
-
getOperations
Returns the sequence of operations.- Specified by:
getOperations
in interfaceConcatenatedOperation
- Returns:
- The sequence of operations.
-
equals
Compare this concatenated operation with the specified object for equality. IfcompareMetadata
istrue
, then all available properties are compared including valid area and scope.- Overrides:
equals
in classAbstractCoordinateOperation
- Parameters:
object
- The object to compare tothis
.compareMetadata
-true
for performing a strict comparaison, orfalse
for comparing only properties relevant to transformations.- Returns:
true
if both objects are equal.
-
hashCode
public int hashCode()Returns a hash code value for this concatenated operation.- Overrides:
hashCode
in classAbstractCoordinateOperation
- Returns:
- The hash code value. This value doesn't need to be the same in past or future versions of this class.
-
formatWKT
Format this operation as a pseudo-WKT format. No WKT format were defined for coordinate operation at the time this method was written. This method may change in any future version until a standard format is found.- Overrides:
formatWKT
in classAbstractCoordinateOperation
- Parameters:
formatter
- The formatter to use.- Returns:
- The WKT element name.
- See Also:
-