org.geotools.referencing.operation
Class DefaultPassThroughOperation

java.lang.Object
  extended byorg.geotools.referencing.wkt.Formattable
      extended byorg.geotools.referencing.AbstractIdentifiedObject
          extended byorg.geotools.referencing.operation.AbstractCoordinateOperation
              extended byorg.geotools.referencing.operation.DefaultSingleOperation
                  extended byorg.geotools.referencing.operation.DefaultPassThroughOperation
All Implemented Interfaces:
org.opengis.referencing.operation.CoordinateOperation, org.opengis.referencing.IdentifiedObject, org.opengis.referencing.operation.PassThroughOperation, java.io.Serializable, org.opengis.referencing.operation.SingleOperation

public class DefaultPassThroughOperation
extends DefaultSingleOperation
implements org.opengis.referencing.operation.PassThroughOperation

A pass-through operation specifies that a subset of a coordinate tuple is subject to a specific coordinate operation.

Since:
2.1
Version:
$Id: DefaultPassThroughOperation.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux
See Also:
Serialized Form

Field Summary
protected  org.opengis.referencing.operation.Operation operation
          The operation to apply on the subset of a coordinate tuple.
 
Fields inherited from class org.geotools.referencing.operation.AbstractCoordinateOperation
EMPTY_ACCURACY_ARRAY, sourceCRS, targetCRS, transform, validArea
 
Fields inherited from class org.geotools.referencing.AbstractIdentifiedObject
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
 
Fields inherited from interface org.opengis.referencing.operation.CoordinateOperation
OPERATION_VERSION_KEY, POSITIONAL_ACCURACY_KEY, SCOPE_KEY, VALID_AREA_KEY
 
Fields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
 
Constructor Summary
DefaultPassThroughOperation(java.util.Map properties, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS, org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS, org.opengis.referencing.operation.Operation operation, int firstAffectedOrdinate, int numTrailingOrdinates)
          Constructs a single operation from a set of properties.
DefaultPassThroughOperation(java.util.Map properties, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS, org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS, org.opengis.referencing.operation.Operation operation, org.opengis.referencing.operation.MathTransform transform)
          Constructs a single operation from a set of properties and the given transform.
 
Method Summary
protected  java.lang.String formatWKT(Formatter formatter)
          Format the inner part of a Well Known Text (WKT) element.
 int[] getModifiedCoordinates()
          Ordered sequence of positive integers defining the positions in a coordinate tuple of the coordinates affected by this pass-through operation.
 org.opengis.referencing.operation.Operation getOperation()
          Returns the operation to apply on the subset of a coordinate tuple.
 
Methods inherited from class org.geotools.referencing.operation.AbstractCoordinateOperation
equals, getAccuracy, getAccuracy, getMathTransform, getOperationVersion, getPositionalAccuracy, getScope, getSourceCRS, getTargetCRS, getType, getValidArea, hashCode
 
Methods inherited from class org.geotools.referencing.AbstractIdentifiedObject
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches
 
Methods inherited from class org.geotools.referencing.wkt.Formattable
toString, toWKT, toWKT, toWKT
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.referencing.operation.CoordinateOperation
getMathTransform, getOperationVersion, getPositionalAccuracy, getScope, getSourceCRS, getTargetCRS, getValidArea
 
Methods inherited from interface org.opengis.referencing.IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
 

Field Detail

operation

protected final org.opengis.referencing.operation.Operation operation
The operation to apply on the subset of a coordinate tuple.

Constructor Detail

DefaultPassThroughOperation

public DefaultPassThroughOperation(java.util.Map properties,
                                   org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS,
                                   org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS,
                                   org.opengis.referencing.operation.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 the AbstractCoordinateOperation constructor. Affected ordinates will range from inclusive to 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(java.util.Map properties,
                                   org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS,
                                   org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS,
                                   org.opengis.referencing.operation.Operation operation,
                                   org.opengis.referencing.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 AbstractCoordinateOperation 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.
Method Detail

getOperation

public org.opengis.referencing.operation.Operation getOperation()
Returns the operation to apply on the subset of a coordinate tuple.

Specified by:
getOperation in interface org.opengis.referencing.operation.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 org.opengis.referencing.operation.PassThroughOperation
Returns:
The modified coordinates.
To Do:
Current version work only with Geotools implementation.

formatWKT

protected java.lang.String formatWKT(Formatter formatter)
Format the inner part of a Well Known Text (WKT) element.

Overrides:
formatWKT in class AbstractCoordinateOperation
Parameters:
formatter - The formatter to use.
Returns:
The WKT element name.


Copyright © GeoTools. All Rights Reserved.