Class DefaultPassThroughOperation
Object
FormattableObject
AbstractIdentifiedObject
AbstractCoordinateOperation
DefaultPassThroughOperation
- All Implemented Interfaces:
Serializable, Formattable, Deprecable, LenientComparable, Printable, IdentifiedObject, CoordinateOperation, PassThroughOperation, SingleOperation
public class DefaultPassThroughOperation
extends AbstractCoordinateOperation
implements PassThroughOperation
Specifies that a subset of a coordinate tuple is subject to a specific coordinate operation.
- Since:
- 0.6
- See Also:
-
Field Summary
Fields inherited from class AbstractIdentifiedObject
DEPRECATED_KEY, DOMAINS_KEY, LOCALE_KEYModifier and TypeFieldDescriptionstatic final StringOptional key which can be given to the constructor for specifying the object is deprecated.static final StringKey for the"domains"property to be given to theObjectFactory.createFoo(Map, ...)methods.static final StringOptional key which can be given to the constructor for specifying the locale to use for producing error messages.Fields 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
ConstructorsModifierConstructorDescriptionDefaultPassThroughOperation(Map<String, ?> properties, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, SingleOperation operation, int firstAffectedCoordinate, int numTrailingCoordinates) Constructs a pass-through operation from a set of properties.protectedCreates a new coordinate operation with the same values as the specified one. -
Method Summary
Modifier and TypeMethodDescriptioncastOrCopy(PassThroughOperation object) Returns a SIS coordinate operation implementation with the values of the given arbitrary implementation.protected StringFormats this coordinate operation in a pseudo-Well Known Text (WKT) format.Deprecated.May be removed in GeoAPI 4.0 since it does not apply to pass-through operations.int[]Returns the ordered sequence of indices in a source coordinate tuple of the coordinates affected by this pass-through operation.Returns the operation to apply on the subset of a coordinate tuple.Deprecated.May be removed in GeoAPI 4.0 since it does not apply to pass-through operations.Returns the GeoAPI interface that defines the contract of this implementation class.Methods inherited from class AbstractCoordinateOperation
castOrCopy, getCoordinateOperationAccuracy, getDomainOfValidity, getInterpolationCRS, getLinearAccuracy, getMathTransform, getOperationVersion, getScope, getSourceCRS, getSourceEpoch, getTargetCRS, getTargetEpoch, getWrapAroundChanges, isDefiningConversion, transformModifier and TypeMethodDescriptioncastOrCopy(CoordinateOperation object) Returns a SIS coordinate operation implementation with the values of the given arbitrary implementation.Returns an estimation of the impact of this operation on point accuracy.Deprecated.Replaced byAbstractIdentifiedObject.getDomains()as of ISO 19111:2019.Returns the CRS to be used for interpolations in a grid.doubleReturns an estimation of positional accuracy in metres, orNaNif unknown.Returns the object for transforming coordinates in the source CRS to coordinates in the target CRS.Returns the version of the coordinate operation.Deprecated.Replaced byAbstractIdentifiedObject.getDomains()as of ISO 19111:2019.Returns the source CRS, ornullif unspecified.Returns the date at which source coordinate tuples are valid.Returns the target CRS, ornullif unspecified.Returns the date at which target coordinate tuples are valid.Returns the indices of target dimensions where "wrap around" may happen as a result of this coordinate operation.booleanDeprecated, for removal: This API element is subject to removal in a future version.Replaced by theDefiningConversionclass.Changes coordinates from being referenced to the source CRS and/or epoch to being referenced to the target CRS and/or epoch.Methods inherited from class AbstractIdentifiedObject
castOrCopy, equals, formatTo, getAlias, getDescription, getDomains, getIdentifiers, getInterface, getName, getRemarks, hashCode, isDeprecated, isHeuristicMatchForNameModifier and TypeMethodDescriptionstatic AbstractIdentifiedObjectcastOrCopy(IdentifiedObject object) Returns a SIS identified object implementation with the values of the given arbitrary implementation.final booleanCompares the specified object with this object for equality.voidFormats the name or identifier of this object using the provider formatter.Returns alternative names by which this object is identified.Returns a narrative explanation of the role of this object.Returns the usage of this CRS-related object.Returns identifiers which references elsewhere the object's defining information.final Class<? extends IdentifiedObject> Deprecated, for removal: This API element is subject to removal in a future version.RenamedAbstractIdentifiedObject.getStandardType()for integration withLenientComparable.getName()Returns the primary name by which this object is identified.Returns comments on or information about this object, including data source information.final intReturns a hash value for this identified object.booleanReturnstrueif this object is deprecated.booleanReturnstrueif either the primary name or at least one alias matches the given string according heuristic rules.Methods inherited from class FormattableObject
print, toString, toString, toWKTModifier and TypeMethodDescriptionvoidprint()Prints a string representation of this object to the standard output stream.Returns a Well Known Text (WKT) or an alternative text representation for this object.toString(Convention convention) Returns a Well Known Text (WKT) for this object using the specified convention.toWKT()Returns a strictly compliant Well Known Text (WKT) using the default convention, symbols and indentation.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface IdentifiedObject
toWKT
-
Constructor Details
-
DefaultPassThroughOperation
public DefaultPassThroughOperation(Map<String, ?> properties, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS, SingleOperation operation, int firstAffectedCoordinate, int numTrailingCoordinates) Constructs a pass-through operation from a set of properties. The properties given in argument follow the same rules as for the super-class constructor. The following table is a reminder of main (not all) properties:Recognized properties (non exhaustive list) Property name Value type Returned by "name" IdentifierorStringAbstractIdentifiedObject.getName()"identifiers" Identifier(optionally as array)AbstractIdentifiedObject.getIdentifiers()- Parameters:
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.firstAffectedCoordinate- index of the first affected coordinate.numTrailingCoordinates- number of trailing coordinates to pass through.
-
DefaultPassThroughOperation
Creates a new coordinate operation with the same values as the specified one. This copy constructor provides a way to convert an arbitrary implementation into a SIS one or a user-defined one (as a subclass), usually in order to leverage some implementation-specific API.This constructor performs a shallow copy, i.e. the properties are not cloned.
- Parameters:
operation- the coordinate operation to copy.- See Also:
-
-
Method Details
-
castOrCopy
Returns a SIS coordinate operation implementation with the values of the given arbitrary implementation. If the given object is already an instance ofDefaultPassThroughOperation, then it is returned unchanged. Otherwise a newDefaultPassThroughOperationinstance is created using the copy constructor and returned. Note that this is a shallow copy operation, because the other properties contained in the given object are not recursively copied.- Parameters:
object- the object to get as a SIS implementation, ornullif none.- Returns:
- a SIS implementation containing the values of the given object (may be the
given object itself), or
nullif the argument was null.
-
getStandardType
Returns the GeoAPI interface that defines the contract of this implementation class. This is the base type required byequals(…)methods for returning a potentiallytruevalue.- Specified by:
getStandardTypein interfaceLenientComparable- Overrides:
getStandardTypein classAbstractCoordinateOperation- Returns:
PassThroughOperation.classor a user-defined sub-interface.- Since:
- 1.7
- See Also:
-
getMethod
Deprecated.May be removed in GeoAPI 4.0 since it does not apply to pass-through operations.Description copied from interface:SingleOperationReturns the operation method.- Specified by:
getMethodin interfaceSingleOperation- Returns:
null.
-
getParameterValues
Deprecated.May be removed in GeoAPI 4.0 since it does not apply to pass-through operations.Description copied from interface:SingleOperationReturns the parameter values.- Specified by:
getParameterValuesin interfaceSingleOperation- Returns:
null.
-
getOperation
Returns the operation to apply on the subset of a coordinate tuple.Upcoming API change
This method is conformant to ISO 19111:2003. But the ISO 19111:2007 revision changed the type fromSingleOperationtoCoordinateOperation. This change may be applied in GeoAPI 4.0. This is necessary for supporting usage ofPassThroughOperationwithConcatenatedOperation.- Specified by:
getOperationin interfacePassThroughOperation- Returns:
- the operation to apply on the subset of a coordinate tuple.
- See Also:
-
getModifiedCoordinates
public int[] getModifiedCoordinates()Returns the ordered sequence of indices in a source coordinate tuple of the coordinates affected by this pass-through operation.- Specified by:
getModifiedCoordinatesin interfacePassThroughOperation- Returns:
- zero-based indices of the modified source coordinates.
- See Also:
-
formatTo
Formats this coordinate operation in a pseudo-Well Known Text (WKT) format. Current format is specific to Apache SIS and may change in any future version if a standard format for pass through operations is defined.- Overrides:
formatToin classAbstractCoordinateOperation- Parameters:
formatter- the formatter to use.- Returns:
- currently
"PassThroughOperation"(may change in any future version). - Since:
- 0.7
- See Also:
-