org.deegree.model.coverage.grid
Class FloatGridCoverage
java.lang.Object
org.deegree.model.coverage.AbstractCoverage
org.deegree.model.coverage.grid.AbstractGridCoverage
org.deegree.model.coverage.grid.FloatGridCoverage
- All Implemented Interfaces:
- Serializable, Coverage, GridCoverage
public class FloatGridCoverage
- extends AbstractGridCoverage
- Version:
- $Revision: 9343 $, $Date: 2007-12-27 14:30:32 +0100 (Do, 27 Dez 2007) $
- Author:
- Andreas Poth, last edited by: $Author: apoth $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FloatGridCoverage
public FloatGridCoverage(CoverageOffering coverageOffering,
Envelope envelope,
float[][][] data)
- Parameters:
coverageOffering
- envelope
- data
-
FloatGridCoverage
public FloatGridCoverage(CoverageOffering coverageOffering,
Envelope envelope,
boolean isEditable,
float[][][] data)
- Parameters:
coverageOffering
- envelope
- isEditable
- data
-
FloatGridCoverage
public FloatGridCoverage(CoverageOffering coverageOffering,
Envelope envelope,
FloatGridCoverage[] sources)
- Parameters:
coverageOffering
- envelope
- sources
-
getNumSampleDimensions
public int getNumSampleDimensions()
- The number of sample dimensions in the coverage. For grid coverages, a sample dimension is a
band.
- Returns:
- The number of sample dimensions in the coverage.
getRenderableImage
public RenderableImage getRenderableImage(int xAxis,
int yAxis)
throws UnsupportedOperationException,
IndexOutOfBoundsException
- Returns 2D view of this coverage as a renderable image. This optional operation allows
interoperability with Java2D. If
this coverage is a "org.opengis.coverage.grid.GridCoverage" backed by a
RenderedImage
, the underlying image can be obtained with:
getRenderableImage(0,1).createDefaultRendering()
- Specified by:
getRenderableImage
in interface Coverage
- Specified by:
getRenderableImage
in class AbstractCoverage
- Parameters:
xAxis
- Dimension to use for the x axis.yAxis
- Dimension to use for the y axis.
- Returns:
- A 2D view of this coverage as a renderable image.
- Throws:
UnsupportedOperationException
- if this optional operation is not supported.
IndexOutOfBoundsException
- if xAxis
or yAxis
is out of bounds.
getAsImage
public BufferedImage getAsImage(int xAxis,
int yAxis)
- this is a deegree convenience method which returns the source image of an
ImageGridCoverage. In procipal the same can be done with the
getRenderableImage(int xAxis, int yAxis) method. but creating a RenderableImage
image is very slow. I xAxis or yAxis <= 0 then the size of the returned image will be
calculated from the source images of the coverage.
- Specified by:
getAsImage
in class AbstractGridCoverage
- Parameters:
xAxis
- Dimension to use for the x axis.yAxis
- Dimension to use for the y axis.
- Returns:
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net