Class DefaultPassThroughOperation
Object
Formattable
AbstractIdentifiedObject
AbstractCoordinateOperation
DefaultSingleOperation
DefaultPassThroughOperation
- All Implemented Interfaces:
Serializable,IdentifiedObject,CoordinateOperation,PassThroughOperation,SingleOperation
public class DefaultPassThroughOperation
extends DefaultSingleOperation
implements PassThroughOperation
A pass-through operation specifies that a subset of a coordinate tuple is subject to a specific coordinate operation.
- Since:
- 2.1
- Author:
- Martin Desruisseaux (IRD)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final OperationThe operation to apply on the subset of a coordinate tuple.Fields inherited from class AbstractCoordinateOperation
domainOfValidity, EMPTY_ACCURACY_ARRAY, sourceCRS, targetCRS, transformFields inherited from class AbstractIdentifiedObject
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATORFields inherited from class Formattable
SINGLE_LINEFields inherited from interface CoordinateOperation
COORDINATE_OPERATION_ACCURACY_KEY, DOMAIN_OF_VALIDITY_KEY, OPERATION_VERSION_KEY, SCOPE_KEYFields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY -
Constructor Summary
ConstructorsConstructorDescriptionDefaultPassThroughOperation(Map<String, ?> properties, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, Operation operation, int firstAffectedOrdinate, int numTrailingOrdinates) Constructs a single operation from a set of properties.DefaultPassThroughOperation(Map<String, ?> properties, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, Operation operation, MathTransform transform) Constructs a single operation from a set of properties and the given transform. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringFormat this operation as a pseudo-WKT format.int[]Ordered sequence of positive integers defining the positions in a coordinate tuple of the coordinates affected by this pass-through operation.Returns the operation to apply on the subset of a coordinate tuple.Methods inherited from class AbstractCoordinateOperation
equals, getAccuracy, getAccuracy, getCoordinateOperationAccuracy, getDomainOfValidity, getMathTransform, getOperationVersion, getScope, getSourceCRS, getTargetCRS, getType, hashCodeMethods 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, nameMatchesMethods inherited from class Formattable
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKTMethods inherited from interface CoordinateOperation
getCoordinateOperationAccuracy, getDomainOfValidity, getMathTransform, getOperationVersion, getScope, getSourceCRS, getTargetCRSMethods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
-
Field Details
-
operation
The operation to apply on the subset of a coordinate tuple.
-
-
Constructor Details
-
DefaultPassThroughOperation
public DefaultPassThroughOperation(Map<String, ?> properties, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, Operation operation, int firstAffectedOrdinate, int numTrailingOrdinates) Constructs a single operation from a set of properties. The properties given in argument follow the same rules than for theAbstractCoordinateOperationconstructor. Affected ordinates will range fromfirstAffectedOrdinateinclusive todimTarget-numTrailingOrdinatesexclusive.- Parameters:
properties- Set of properties. Should contains at least"name".sourceCRS- The source CRS.targetCRS- The target CRS.operation- The operation to apply on the subset of a coordinate tuple.firstAffectedOrdinate- Index of the first affected ordinate.numTrailingOrdinates- Number of trailing ordinates to pass through.
-
DefaultPassThroughOperation
public DefaultPassThroughOperation(Map<String, ?> properties, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, Operation operation, MathTransform transform) Constructs a single operation from a set of properties and the given transform. The properties given in argument follow the same rules than for theAbstractCoordinateOperationconstructor.- Parameters:
properties- Set of properties. Should contains at least"name".sourceCRS- The source CRS.targetCRS- The target CRS.operation- The operation to apply on the subset of a coordinate tuple.transform- The pass through transform.
-
-
Method Details
-
getOperation
Returns the operation to apply on the subset of a coordinate tuple.- Specified by:
getOperationin interfacePassThroughOperation- Returns:
- The operation.
-
getModifiedCoordinates
public int[] getModifiedCoordinates()Ordered sequence of positive integers defining the positions in a coordinate tuple of the coordinates affected by this pass-through operation. The returned index are for source coordinates.- Specified by:
getModifiedCoordinatesin interfacePassThroughOperation- Returns:
- The modified coordinates.
-
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:
formatWKTin classAbstractCoordinateOperation- Parameters:
formatter- The formatter to use.- Returns:
- The WKT element name.
- See Also:
-