org.geotools.resources.image
Class CoverageUtilities

java.lang.Object
  extended byorg.geotools.resources.image.CoverageUtilities

public final class CoverageUtilities
extends java.lang.Object

A set of utilities methods for the Grid Coverage package. Those methods are not really rigorous; must of them should be seen as temporary implementations.

Since:
2.2
Version:
$Id: CoverageUtilities.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux

Method Summary
static int getVisibleBand(java.lang.Object image)
          Returns the visible band in the specified RenderedImage or PropertySource.
static boolean hasTransform(org.opengis.coverage.SampleDimension[] sampleDimensions)
          Returns if at least one of the specified sample dimensions has a sample to geophysics transform which is not the identity transform.
static boolean uses(org.opengis.coverage.grid.GridCoverage coverage, java.awt.image.RenderedImage image)
          Returns if the specified grid coverage or any of its source uses the following image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasTransform

public static boolean hasTransform(org.opengis.coverage.SampleDimension[] sampleDimensions)
Returns if at least one of the specified sample dimensions has a sample to geophysics transform which is not the identity transform.


uses

public static boolean uses(org.opengis.coverage.grid.GridCoverage coverage,
                           java.awt.image.RenderedImage image)
Returns if the specified grid coverage or any of its source uses the following image.


getVisibleBand

public static int getVisibleBand(java.lang.Object image)
Returns the visible band in the specified RenderedImage or PropertySource. This method fetch the property. If this property is undefined, then the visible band default to the first one.

Parameters:
image - The image for which to fetch the visible band, or .
Returns:
The visible band.


Copyright © GeoTools. All Rights Reserved.