org.geotoolkit.referencing.operation
Class DefaultPassThroughOperation
Object
FormattableObject
AbstractIdentifiedObject
AbstractCoordinateOperation
DefaultSingleOperation
DefaultPassThroughOperation
- All Implemented Interfaces:
- Serializable, Formattable, LenientComparable, IdentifiedObject, CoordinateOperation, PassThroughOperation, SingleOperation
@Immutable
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.0
- Version:
- 3.01
- Author:
- Martin Desruisseaux (IRD)
- See Also:
- Serialized Form
- Module:
|
Constructor Summary |
DefaultPassThroughOperation(Map<String,?> properties,
CoordinateReferenceSystem sourceCRS,
CoordinateReferenceSystem targetCRS,
SingleOperation operation,
int firstAffectedOrdinate,
int numTrailingOrdinates)
Constructs a single operation from a set of properties. |
DefaultPassThroughOperation(Map<String,?> properties,
CoordinateReferenceSystem sourceCRS,
CoordinateReferenceSystem targetCRS,
SingleOperation operation,
MathTransform transform)
Constructs a single operation from a set of properties and the given transform. |
|
Method Summary |
String |
formatWKT(Formatter formatter)
Formats this operation as a pseudo-WKT format. |
int[] |
getModifiedCoordinates()
Ordered sequence of positive integers defining the positions in a coordinate
tuple of the coordinates affected by this pass-through operation. |
SingleOperation |
getOperation()
Returns the operation to apply on the subset of a coordinate tuple. |
| Methods inherited from class AbstractCoordinateOperation |
computeHashCode, getAccuracy, getAccuracy, getCoordinateOperationAccuracy, getDomainOfValidity, getMathTransform, getOperationVersion, getScope, getSourceCRS, getTargetCRS, getType |
| Methods inherited from class AbstractIdentifiedObject |
equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, hashCode, nameMatches, nameMatches, nameMatches |
operation
protected final SingleOperation operation
- The operation to apply on the subset of a coordinate tuple.
DefaultPassThroughOperation
public DefaultPassThroughOperation(Map<String,?> properties,
CoordinateReferenceSystem sourceCRS,
CoordinateReferenceSystem targetCRS,
SingleOperation 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 the
AbstractCoordinateOperation constructor.
Affected ordinates will range from firstAffectedOrdinate
inclusive to dimTarget-numTrailingOrdinates exclusive.
- 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,
SingleOperation 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 the
super-class constructor.
- 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.
getOperation
public SingleOperation getOperation()
- Returns the operation to apply on the subset of a coordinate tuple.
- Specified by:
getOperation in interface PassThroughOperation
- 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:
getModifiedCoordinates in interface PassThroughOperation
- Returns:
- The modified coordinates.
- TODO:
- Current version works only with Geotk implementation.
formatWKT
public String formatWKT(Formatter formatter)
- Formats 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.
- Specified by:
formatWKT in interface Formattable- Overrides:
formatWKT in class DefaultSingleOperation
- Parameters:
formatter - The formatter to use.
- Returns:
- The WKT element name.
- See Also:
FormattableObject.toWKT(),
FormattableObject.toString()
Copyright © 2009-2011 Geotoolkit.org. All Rights Reserved.