Package oracle.spatial.georaster.image
Provides support for generating Java images from a GeoRaster object or a subset of a GeoRaster object, and for processing the images. It is the rendering engine for displaying GeoRaster objects. This package depends upon and leverages JAI.
-
Class Summary Class Description GeoRasterImage GeoRasterImage is a GeoRaster image engine, which is used to generate Java images from a GeoRaster object or a subset of a GeoRaster object based on the metadata of the GeoRaster object and different query conditions.GeoRasterImage.NodataMapping GeoRasterImageProcessUtil TheGeoRasterImageProcessUtil
class provides the following basic image processing functions:RasterImage RasterImage is a Java class that generates a RenderedImage object from a Blob or a byte array.
There are two constructors which take data in byte[] or Blob:
public RasterImage( byte[] data, long height, long width, long nbands, String cellDepth, String interleaving) throws GeoRasterException;
public RasterImage( Blob blob, long height, long width, long nbands, String cellDepth, String interleaving) throws GeoRasterException, SQLException;
If nbands is 1 or 3 and nodataMapping has transparent=true this class will add an alpha band to apply nodataMapping transparent values.
If setHasAlpha(true) is invoked and nbands is 2 or 4, the last band will be interpreted has alpha band.
Example on how to use the class: