|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.cv.Adapters
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.
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 |
public final Adapters CTS
org.geotools.ct
).
Constructor Detail |
protected Adapters(Adapters CTS)
Adapters
can
be obtained with Adapters.getDefault()
.
CTS
- The adapters from Coordinate Transformation Services
(package org.geotools.ct
).Method Detail |
public org.opengis.cv.CV_ColorInterpretation export(ColorInterpretation colors)
colors
- The Geotools object.
public org.opengis.cv.CV_SampleDimensionType export(SampleDimensionType type)
type
- The Geotools object.
public org.opengis.cv.CV_SampleDimension export(SampleDimension dimension) throws java.rmi.RemoteException
dimension
- The Geotools object.
java.rmi.RemoteException
- if the OpenGIS object can't be exported.public org.opengis.cv.CV_Coverage export(Coverage coverage) throws java.rmi.RemoteException
coverage
- The Geotools object.
java.rmi.RemoteException
- if the OpenGIS object can't be exported.protected org.opengis.cv.CV_Coverage doExport(Coverage coverage) throws java.rmi.RemoteException
export(Coverage)
if an OpenGIS object is not already presents
in the cache. Subclasses should override this method instead of
export(Coverage)
.
coverage
- The Geotools object.
java.rmi.RemoteException
- if the OpenGIS object can't be exported.public ColorInterpretation wrap(org.opengis.cv.CV_ColorInterpretation colors)
colors
- The OpenGIS object.
public SampleDimensionType wrap(org.opengis.cv.CV_SampleDimensionType type)
type
- The OpenGIS object.
public SampleDimension wrap(org.opengis.cv.CV_SampleDimension sd) throws java.rmi.RemoteException
sd
- The OpenGIS object.
java.rmi.RemoteException
- if an operation failed while querying the OpenGIS object.public Coverage wrap(org.opengis.cv.CV_Coverage coverage) throws java.rmi.RemoteException
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
.
coverage
- The OpenGIS object.
java.rmi.RemoteException
- if an operation failed while querying the OpenGIS object.protected Coverage doWrap(org.opengis.cv.CV_Coverage coverage) throws java.rmi.RemoteException
wrap(CV_Coverage)
if a Geotools object is not already presents in
the cache. Subclasses should override this method instead of
wrap(CV_Coverage)
.
coverage
- The OpenGIS object.
java.rmi.RemoteException
- if an operation failed while querying the OpenGIS object.protected javax.media.jai.PropertySource getPropertySource(org.opengis.cv.CV_Coverage coverage)
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:
PropertySource.getPropertyNames()
delegates to
CV_Coverage.getMetadataNames()
.PropertySource.getProperty(String)
delegates to
CV_Coverage.getMetadataValue(String)
.RemoteException
is thrown, it is
wrapped in an unchecked CannotEvaluateException
.
coverage
- The OpenGIS coverage.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |