org.geotools.cv
Class Adapters

java.lang.Object
  extended byorg.geotools.cv.Adapters
Direct Known Subclasses:
Adapters

Deprecated. The legacy OpenGIS CV package is deprecated. There is no replacement at this time for RMI objects.

public class Adapters
extends java.lang.Object

Provide methods for interoperability with OpenGIS CV package. All methods accept null argument. This class has no default instance, since the org.geotools.gp.Adapters implementation cover this case.

Version:
$Id: Adapters.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux
See Also:
Adapters.getDefault()

Field Summary
 Adapters CTS
          Deprecated. The adapters from Coordinate Transformation Services (package org.geotools.ct).
 
Constructor Summary
protected Adapters(Adapters CTS)
          Deprecated. Default constructor.
 
Method Summary
protected  org.opengis.cv.CV_Coverage doExport(Coverage coverage)
          Deprecated. Performs the wrapping of a Geotools object.
protected  Coverage doWrap(org.opengis.cv.CV_Coverage coverage)
          Deprecated. Performs the wrapping of an OpenGIS's interface.
 org.opengis.cv.CV_ColorInterpretation export(ColorInterpretation colors)
          Deprecated. Returns an OpenGIS enumeration for a color interpretation.
 org.opengis.cv.CV_Coverage export(Coverage coverage)
          Deprecated. Returns an OpenGIS interface for a coverage.
 org.opengis.cv.CV_SampleDimension export(SampleDimension dimension)
          Deprecated. Returns an OpenGIS interface for a sample dimension.
 org.opengis.cv.CV_SampleDimensionType export(SampleDimensionType type)
          Deprecated. Returns an OpenGIS enumeration for a color interpretation.
protected  javax.media.jai.PropertySource getPropertySource(org.opengis.cv.CV_Coverage coverage)
          Deprecated. Returns the PropertySource for the specified OpenGIS's coverage.
 ColorInterpretation wrap(org.opengis.cv.CV_ColorInterpretation colors)
          Deprecated. Returns a color interpretation from an OpenGIS's enumeration.
 Coverage wrap(org.opengis.cv.CV_Coverage coverage)
          Deprecated. Returns a coverage from an OpenGIS's interface.
 SampleDimension wrap(org.opengis.cv.CV_SampleDimension sd)
          Deprecated. Returns a sample dimension from an OpenGIS's interface.
 SampleDimensionType wrap(org.opengis.cv.CV_SampleDimensionType type)
          Deprecated. Returns a sample type from an OpenGIS's enumeration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CTS

public final Adapters CTS
Deprecated. 
The adapters from Coordinate Transformation Services (package org.geotools.ct).

Constructor Detail

Adapters

protected Adapters(Adapters CTS)
Deprecated. 
Default constructor. A shared instance of Adapters can be obtained with Adapters.getDefault().

Parameters:
CTS - The adapters from Coordinate Transformation Services (package org.geotools.ct).
Method Detail

export

public org.opengis.cv.CV_ColorInterpretation export(ColorInterpretation colors)
Deprecated. 
Returns an OpenGIS enumeration for a color interpretation.

Parameters:
colors - The Geotools object.
Returns:
The OpenGIS object.

export

public org.opengis.cv.CV_SampleDimensionType export(SampleDimensionType type)
Deprecated. 
Returns an OpenGIS enumeration for a color interpretation.

Parameters:
type - The Geotools object.
Returns:
The OpenGIS object.

export

public org.opengis.cv.CV_SampleDimension export(SampleDimension dimension)
                                         throws java.rmi.RemoteException
Deprecated. 
Returns an OpenGIS interface for a sample dimension.

Parameters:
dimension - The Geotools object.
Returns:
The OpenGIS object.
Throws:
java.rmi.RemoteException - if the OpenGIS object can't be exported.

export

public org.opengis.cv.CV_Coverage export(Coverage coverage)
                                  throws java.rmi.RemoteException
Deprecated. 
Returns an OpenGIS interface for a coverage.

Parameters:
coverage - The Geotools object.
Returns:
The OpenGIS object.
Throws:
java.rmi.RemoteException - if the OpenGIS object can't be exported.

doExport

protected org.opengis.cv.CV_Coverage doExport(Coverage coverage)
                                       throws java.rmi.RemoteException
Deprecated. 
Performs the wrapping of a Geotools object. This method is invoked by export(Coverage) if an OpenGIS object is not already presents in the cache. Subclasses should override this method instead of export(Coverage).

Parameters:
coverage - The Geotools object.
Returns:
The OpenGIS object.
Throws:
java.rmi.RemoteException - if the OpenGIS object can't be exported.

wrap

public ColorInterpretation wrap(org.opengis.cv.CV_ColorInterpretation colors)
Deprecated. 
Returns a color interpretation from an OpenGIS's enumeration.

Parameters:
colors - The OpenGIS object.
Returns:
The Geotools object.

wrap

public SampleDimensionType wrap(org.opengis.cv.CV_SampleDimensionType type)
Deprecated. 
Returns a sample type from an OpenGIS's enumeration.

Parameters:
type - The OpenGIS object.
Returns:
The Geotools object.

wrap

public SampleDimension wrap(org.opengis.cv.CV_SampleDimension sd)
                     throws java.rmi.RemoteException
Deprecated. 
Returns a sample dimension from an OpenGIS's interface.

Parameters:
sd - The OpenGIS object.
Returns:
The Geotools object.
Throws:
java.rmi.RemoteException - if an operation failed while querying the OpenGIS object.

wrap

public Coverage wrap(org.opengis.cv.CV_Coverage coverage)
              throws java.rmi.RemoteException
Deprecated. 
Returns a coverage from an OpenGIS's interface. If the OpenGIS object is actually an instance of GC_GridCoverage and this Adapters is an instance of the org.geotools.gc.Adapters class, then the returned coverage implementation will be an instance of GridCoverage.

Parameters:
coverage - The OpenGIS object.
Returns:
The Geotools object.
Throws:
java.rmi.RemoteException - if an operation failed while querying the OpenGIS object.

doWrap

protected Coverage doWrap(org.opengis.cv.CV_Coverage coverage)
                   throws java.rmi.RemoteException
Deprecated. 
Performs the wrapping of an OpenGIS's interface. This method is invoked by wrap(CV_Coverage) if a Geotools object is not already presents in the cache. Subclasses should override this method instead of wrap(CV_Coverage).

Parameters:
coverage - The OpenGIS object.
Returns:
The Geotools object.
Throws:
java.rmi.RemoteException - if an operation failed while querying the OpenGIS object.

getPropertySource

protected javax.media.jai.PropertySource getPropertySource(org.opengis.cv.CV_Coverage coverage)
Deprecated. 
Returns the PropertySource for the specified OpenGIS's coverage. If the specified coverage already implements PropertySource, then it is returned. Otherwise, the coverage is wrapped in an object with the following behaviour:

Parameters:
coverage - The OpenGIS coverage.
Returns:
The property source for the specified coverage.


Copyright © GeoTools. All Rights Reserved.