org.geotools.gc
Class Adapters

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

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

public class Adapters
extends Adapters

Provide methods for interoperability with OpenGIS GC 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
 
Fields inherited from class org.geotools.cv.Adapters
CTS
 
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.gc.GC_GridCoverage export(GridCoverage coverage)
          Deprecated. Returns an OpenGIS interface for a grid coverage.
 org.opengis.gc.GC_GridGeometry export(GridGeometry geometry)
          Deprecated. Returns an OpenGIS interface for a grid geometry.
 org.opengis.gc.GC_GridRange export(GridRange range)
          Deprecated. Returns an OpenGIS interface for a grid range.
 GridCoverage wrap(org.opengis.gc.GC_GridCoverage coverage)
          Deprecated. Returns a grid coverage from an OpenGIS's interface.
 GridGeometry wrap(org.opengis.gc.GC_GridGeometry geometry)
          Deprecated. Returns a grid geometry from an OpenGIS's interface.
 GridRange wrap(org.opengis.gc.GC_GridRange range)
          Deprecated. Returns a grid range from an OpenGIS's interface.
 
Methods inherited from class org.geotools.cv.Adapters
export, export, export, export, getPropertySource, wrap, wrap, wrap, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.gc.GC_GridRange export(GridRange range)
Deprecated. 
Returns an OpenGIS interface for a grid range.

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

export

public org.opengis.gc.GC_GridGeometry export(GridGeometry geometry)
Deprecated. 
Returns an OpenGIS interface for a grid geometry.

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

export

public org.opengis.gc.GC_GridCoverage export(GridCoverage coverage)
                                      throws java.rmi.RemoteException
Deprecated. 
Returns an OpenGIS interface for a grid 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 Adapters.export(Coverage) and export(GridCoverage) if an OpenGIS object is not already presents in the cache.

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

wrap

public GridRange wrap(org.opengis.gc.GC_GridRange range)
               throws java.rmi.RemoteException
Deprecated. 
Returns a grid range from an OpenGIS's interface.

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

wrap

public GridGeometry wrap(org.opengis.gc.GC_GridGeometry geometry)
                  throws java.rmi.RemoteException
Deprecated. 
Returns a grid geometry from an OpenGIS's interface.

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

wrap

public GridCoverage wrap(org.opengis.gc.GC_GridCoverage coverage)
                  throws java.rmi.RemoteException
Deprecated. 
Returns a grid coverage from an OpenGIS's interface.

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 Adapters.wrap(CV_Coverage) and wrap(GC_GridCoverage) if a Geotools object is not already presents in the cache.

Overrides:
doWrap in class Adapters
Parameters:
coverage - The OpenGIS object.
Returns:
The Geotools object.
Throws:
java.rmi.RemoteException - if an operation failed while querying the OpenGIS object.
Task:
REVISIT: What to do with interpolation? We can query the interpolation with GridCoverage.Remote.getInterpolation() and invoke GridCoverageProcessor.doOperation("Interpolate", ...), but the later would introduce a dependency to the "gp" package. The current design is to override this method in org.geotools.gp.Adapters., TODO: Implement a RenderedImage constructing tiles uppon request by invoking GC_GridCoverage.getPackedDataBlock(org.opengis.gc.GC_GridRange). It would be used when a SerializableRenderedImage is not available., TODO: Localize the error message in the catch (IOException) block.


Copyright © GeoTools. All Rights Reserved.