org.geotools.coverage.processing.operation
Class Resample

java.lang.Object
  extended byorg.geotools.coverage.processing.AbstractOperation
      extended byorg.geotools.coverage.processing.Operation2D
          extended byorg.geotools.coverage.processing.operation.Resample
All Implemented Interfaces:
org.opengis.coverage.processing.Operation, java.io.Serializable
Direct Known Subclasses:
Resampler2D.Operation

public class Resample
extends Operation2D

Resample a grid coverage using a different grid geometry. This operation provides the following functionality:

Geotools extension:
The operation use the default CoordinateOperationFactory for creating a transformation from the source to the destination coordinate reference systems. If a custom factory is desired, it may be supplied as a rendering hint with the Hints.COORDINATE_OPERATION_FACTORY key. Rendering hints can be supplied to DefaultProcessor at construction time.

Name: "Resample"
JAI operator: "Affine" or "Warp"
Parameters:

Name Class Default value Minimum value Maximum value
GridCoverage2D N/A N/A N/A
CharSequence "NearestNieghbor" N/A N/A
CoordinateReferenceSystem Same as source grid coverage N/A N/A
GridGeometry2D (automatic) N/A N/A

Since:
2.2
Version:
$Id: Resample.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux
See Also:
Operations.resample(org.opengis.coverage.Coverage, org.opengis.referencing.crs.CoordinateReferenceSystem), WarpDescriptor, Serialized Form

Field Summary
static org.opengis.parameter.ParameterDescriptor COORDINATE_REFERENCE_SYSTEM
          The parameter descriptor for the coordinate reference system.
static org.opengis.parameter.ParameterDescriptor GRID_GEOMETRY
          The parameter descriptor for the grid geometry.
static org.opengis.parameter.ParameterDescriptor INTERPOLATION_TYPE
          The parameter descriptor for the interpolation type.
 
Fields inherited from class org.geotools.coverage.processing.Operation2D
SOURCE_0
 
Fields inherited from class org.geotools.coverage.processing.AbstractOperation
descriptor
 
Constructor Summary
Resample()
          Constructs a operation.
 
Method Summary
protected  org.opengis.coverage.Coverage doOperation(org.opengis.parameter.ParameterValueGroup parameters, Hints hints)
          Resample a grid coverage.
 
Methods inherited from class org.geotools.coverage.processing.Operation2D
getFactory, getGridCoverageProcessor
 
Methods inherited from class org.geotools.coverage.processing.AbstractOperation
ensureNonNull, equals, getDescription, getDocURL, getName, getNumSources, getParameters, getProcessor, getVendor, getVersion, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INTERPOLATION_TYPE

public static final org.opengis.parameter.ParameterDescriptor INTERPOLATION_TYPE
The parameter descriptor for the interpolation type.


COORDINATE_REFERENCE_SYSTEM

public static final org.opengis.parameter.ParameterDescriptor COORDINATE_REFERENCE_SYSTEM
The parameter descriptor for the coordinate reference system.


GRID_GEOMETRY

public static final org.opengis.parameter.ParameterDescriptor GRID_GEOMETRY
The parameter descriptor for the grid geometry.

Constructor Detail

Resample

public Resample()
Constructs a operation.

Method Detail

doOperation

protected org.opengis.coverage.Coverage doOperation(org.opengis.parameter.ParameterValueGroup parameters,
                                                    Hints hints)
Resample a grid coverage. This method is invoked by DefaultProcessor for the operation.

Specified by:
doOperation in class AbstractOperation
Parameters:
parameters - List of name value pairs for the parameters required for the operation.
hints - A set of rendering hints, or if none. The may provides hints for the following keys: Hints.COORDINATE_OPERATION_FACTORY and Hints.JAI_INSTANCE.
Returns:
The result as a coverage.


Copyright © GeoTools. All Rights Reserved.