public class DefaultPassThroughOperation extends AbstractCoordinateOperation implements PassThroughOperation
Defined in the sis-referencing module
DEPRECATED_KEY, LOCALE_KEYCOORDINATE_OPERATION_ACCURACY_KEY, DOMAIN_OF_VALIDITY_KEY, OPERATION_VERSION_KEY, SCOPE_KEYALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY| Modifier | Constructor and Description |
|---|---|
|
DefaultPassThroughOperation(Map<String,?> properties,
CoordinateReferenceSystem sourceCRS,
CoordinateReferenceSystem targetCRS,
SingleOperation operation,
int firstAffectedOrdinate,
int numTrailingOrdinates)
Constructs a single operation from a set of properties.
|
protected |
DefaultPassThroughOperation(PassThroughOperation operation)
Creates a new coordinate operation with the same values than the specified one.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultPassThroughOperation |
castOrCopy(PassThroughOperation object)
Returns a SIS coordinate operation implementation with the values of the given arbitrary implementation.
|
protected long |
computeHashCode()
Invoked by
hashCode() for computing the hash code when first needed. |
boolean |
equals(Object object,
ComparisonMode mode)
Compares this concatenated operation with the specified object for equality.
|
protected String |
formatTo(Formatter formatter)
Formats this coordinate operation in a pseudo-Well Known Text (WKT) format.
|
Class<? extends PassThroughOperation> |
getInterface()
Returns the GeoAPI interface implemented by this class.
|
OperationMethod |
getMethod()
Deprecated.
May be removed in GeoAPI 4.0 since it does not apply to pass-through operations.
|
int[] |
getModifiedCoordinates()
Returns the ordered sequence of indices in a source 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.
|
ParameterValueGroup |
getParameterValues()
Deprecated.
May be removed in GeoAPI 4.0 since it does not apply to pass-through operations.
|
castOrCopy, getCoordinateOperationAccuracy, getDomainOfValidity, getInterpolationCRS, getLinearAccuracy, getMathTransform, getOperationVersion, getScope, getSourceCRS, getTargetCRS, getWrapAroundChanges, isDefiningConversioncastOrCopy, equals, getAlias, getDescription, getIdentifiers, getName, getRemarks, hashCode, isDeprecated, isHeuristicMatchForNameprint, toString, toString, toWKTclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCoordinateOperationAccuracy, getDomainOfValidity, getMathTransform, getOperationVersion, getScope, getSourceCRS, getTargetCRSgetAlias, getIdentifiers, getName, getRemarks, toWKTpublic DefaultPassThroughOperation(Map<String,?> properties, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, SingleOperation operation, int firstAffectedOrdinate, int numTrailingOrdinates)
| Property name | Value type | Returned by |
|---|---|---|
| "name" | Identifier or String |
AbstractIdentifiedObject.getName() |
| "identifiers" | Identifier (optionally as array) |
AbstractIdentifiedObject.getIdentifiers() |
properties - the properties to be given to the identified object.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.protected DefaultPassThroughOperation(PassThroughOperation operation)
This constructor performs a shallow copy, i.e. the properties are not cloned.
operation - the coordinate operation to copy.castOrCopy(PassThroughOperation)public static DefaultPassThroughOperation castOrCopy(PassThroughOperation object)
DefaultPassThroughOperation, then it is returned
unchanged. Otherwise a new DefaultPassThroughOperation instance is created using the
copy constructor and returned.
Note that this is a shallow copy operation, since the other properties contained in the given
object are not recursively copied.object - the object to get as a SIS implementation, or null if none.null if the argument was null.public Class<? extends PassThroughOperation> getInterface()
PassThroughOperation.class.
PassThroughOperation
sub-interface. Overriding possibility is left mostly for implementors who wish to extend GeoAPI with their
own set of interfaces.getInterface in class AbstractCoordinateOperationPassThroughOperation.class or a user-defined sub-interface.@Deprecated public OperationMethod getMethod()
AbstractCoordinateOperationAbstractSingleOperation subclasses,
which will make this method public.getMethod in interface SingleOperationnull.@Deprecated public ParameterValueGroup getParameterValues()
AbstractCoordinateOperationgetParameterValues in interface SingleOperationnull.public SingleOperation getOperation()
SingleOperation to CoordinateOperation. This change may be applied in GeoAPI 4.0.
This is necessary for supporting usage of PassThroughOperation with ConcatenatedOperation.
getOperation in interface PassThroughOperationPassThroughTransform.getSubTransform()public int[] getModifiedCoordinates()
getModifiedCoordinates in interface PassThroughOperationPassThroughTransform.getModifiedCoordinates()public boolean equals(Object object, ComparisonMode mode)
mode argument
is ComparisonMode.STRICT or BY_CONTRACT, then all available
properties are compared including the domain of validity and the
scope.equals in interface LenientComparableequals in class AbstractCoordinateOperationobject - the object to compare to this.mode - STRICT for performing a strict comparison, or
IGNORE_METADATA for ignoring properties
that do not make a difference in the numerical results of coordinate operations.true if both objects are equal for the given comparison mode.AbstractIdentifiedObject.computeHashCode(),
Utilities.deepEquals(Object, Object, ComparisonMode)protected long computeHashCode()
hashCode() for computing the hash code when first needed.
See AbstractIdentifiedObject.computeHashCode() for more information.computeHashCode in class AbstractCoordinateOperationprotected String formatTo(Formatter formatter)
formatTo in class AbstractCoordinateOperationformatter - the formatter to use."PassThroughOperation" (may change in any future version).Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.